bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=5b8dc56100e3c850b21cb7ca41dd9f86e7d57c22
commit 5b8dc56100e3c850b21cb7ca41dd9f86e7d57c22 Author: Hosang Kim <[email protected]> Date: Tue Mar 17 04:12:19 2020 +0000 win/widget: free array when object is deleted. It makes a memory leak. Reviewed-by: Marcel Hollerbach <[email protected]> Differential Revision: https://phab.enlightenment.org/D11522 --- src/lib/elementary/efl_ui_widget.c | 5 +++++ src/lib/elementary/efl_ui_win.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c index bc6574f05a..a58c66b99c 100644 --- a/src/lib/elementary/efl_ui_widget.c +++ b/src/lib/elementary/efl_ui_widget.c @@ -4882,6 +4882,11 @@ _efl_ui_widget_efl_object_destructor(Eo *obj, Elm_Widget_Smart_Data *sd) efl_weak_unref(&sd->logical.parent); sd->logical.parent = NULL; } + if (sd->children) + { + eina_array_free(sd->children); + sd->children = NULL; + } sd->on_destroy = EINA_TRUE; efl_destructor(efl_super(obj, EFL_UI_WIDGET_CLASS)); diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c index 48da9d56fe..51806d15d5 100644 --- a/src/lib/elementary/efl_ui_win.c +++ b/src/lib/elementary/efl_ui_win.c @@ -3182,6 +3182,9 @@ _efl_ui_win_efl_canvas_group_group_del(Eo *obj, Efl_Ui_Win_Data *sd) eina_array_free(sd->profile.available); sd->profile.available = NULL; + eina_array_free(sd->planned_changes); + sd->planned_changes = NULL; + free(sd->wm_rot.rots); sd->wm_rot.rots = NULL; --
