From 2baf946fd750b9d45bf5acd7ebe303ed1a910bb9 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Fri, 5 Nov 2021 16:02:35 +0900 Subject: [PATCH] efl_ui_win: delete ecore_evas when inlined image window is deleted When inlined image window is deleted, associated image object and ecore evas are not deleted. So there is memory leak. @tizen_only Change-Id: Iab248b0cf0bfe3f3a9f81a8eb8604a68218be232 --- src/lib/elementary/efl_ui_win.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 2e91df3..ac14f70 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -3714,16 +3714,16 @@ _efl_ui_win_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Win_Data *sd) _elm_win_img_callbacks_del(obj, sd->img_obj); sd->img_obj = NULL; } - else + + //TIZEN_ONLY(20211108): delete ecore_evas when inlined image window is deleted + if (sd->ee && (sd->type != EFL_UI_WIN_TYPE_FAKE)) { - if (sd->ee && (sd->type != EFL_UI_WIN_TYPE_FAKE)) - { - ecore_evas_manual_render_set(sd->ee, EINA_TRUE); - edje_object_freeze(sd->frame_obj); - ecore_job_add(_deferred_ecore_evas_free, sd->ee); - _elm_win_deferred_free++; - } + ecore_evas_manual_render_set(sd->ee, EINA_TRUE); + edje_object_freeze(sd->frame_obj); + ecore_job_add(_deferred_ecore_evas_free, sd->ee); + _elm_win_deferred_free++; } + // _elm_win_focus_highlight_shutdown(sd); // TIZEN_ONLY(20171114) Accessibility Highlight Frame added -- 2.7.4