diff options
author | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-02-15 15:43:20 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-02-15 15:58:21 +0900 |
commit | cfd5f114108ab06f4b08d7744dd6f7c707f72887 (patch) | |
tree | 28f8c87b6aa9f39e2edfd1f1748022307c753af3 | |
parent | a568d26f722140dcf2169e7cf474ca6366701ef5 (diff) | |
download | efl-cfd5f114108ab06f4b08d7744dd6f7c707f72887.tar.gz |
textblock: Fix dangling data ref
In this case data_scope_get is more appropriate as the data is
indeed stored on the stack (function scope) and not somewhere else.
After this last fix I see no eo_debug error logs in elementary test.
Yay! eo_debug is now usable :)
-rw-r--r-- | src/lib/evas/canvas/evas_object_textblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 2d2af2cbe0..8e2b7564a2 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -6229,7 +6229,7 @@ static void _layout(const Evas_Object *eo_obj, int w, int h, int *w_ret, int *h_ret) { Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS); - Efl_Canvas_Text_Data *o = efl_data_ref(eo_obj, MY_CLASS); + Efl_Canvas_Text_Data *o = efl_data_scope_get(eo_obj, MY_CLASS); Ctxt ctxt, *c; int style_pad_l = 0, style_pad_r = 0, style_pad_t = 0, style_pad_b = 0; |