From 303d2e79cc94f38571389f41e28b71bc26d03dc3 Mon Sep 17 00:00:00 2001 From: Daniel Hirt Date: Thu, 8 Jun 2017 08:08:56 +0300 Subject: [PATCH] Ui text: fix leak in decorations --- src/lib/elementary/efl_ui_text.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/elementary/efl_ui_text.c b/src/lib/elementary/efl_ui_text.c index e5a41de..4ec8836 100644 --- a/src/lib/elementary/efl_ui_text.c +++ b/src/lib/elementary/efl_ui_text.c @@ -268,6 +268,8 @@ static void _edje_signal_emit(Efl_Ui_Text_Data *obj, const char *sig, const char static void _decoration_defer_all(Eo *obj); static inline Eo * _decoration_create(Efl_Ui_Text_Data *sd, const char *file, const char *source, Eina_Bool above); static void _decoration_defer(Eo *obj); +static void _anchors_clear_all(Evas_Object *o EINA_UNUSED, Efl_Ui_Text_Data *sd); +static void _unused_item_objs_free(Efl_Ui_Text_Data *sd); static Mod_Api * _module_find(Evas_Object *obj EINA_UNUSED) @@ -3249,6 +3251,9 @@ _efl_ui_text_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Text_Data *sd) evas_object_del(sd->end_handler); } + _anchors_clear_all(obj, sd); + _unused_item_objs_free(sd); + text_obj = edje_object_part_swallow_get(sd->entry_edje, "elm.text"); efl_event_callback_del(text_obj, EFL_UI_TEXT_INTERACTIVE_EVENT_CHANGED_USER, _efl_ui_text_changed_cb, obj); -- 2.7.4