From cfd5f114108ab06f4b08d7744dd6f7c707f72887 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Wed, 15 Feb 2017 15:43:20 +0900 Subject: [PATCH] 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 :) --- src/lib/evas/canvas/evas_object_textblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 2d2af2c..8e2b756 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; -- 2.7.4