summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2020-03-17 04:12:19 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-17 09:38:16 +0100
commit5b8dc56100e3c850b21cb7ca41dd9f86e7d57c22 (patch)
treecb7cf6c94055be3c70046195ebe702bfa905f774
parentbd22ee962fee5d657a039ba0416b7d17c7dc449e (diff)
win/widget: free array when object is deleted.
It makes a memory leak. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11522
-rw-r--r--src/lib/elementary/efl_ui_widget.c5
-rw-r--r--src/lib/elementary/efl_ui_win.c3
2 files changed, 8 insertions, 0 deletions
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)
4882 efl_weak_unref(&sd->logical.parent); 4882 efl_weak_unref(&sd->logical.parent);
4883 sd->logical.parent = NULL; 4883 sd->logical.parent = NULL;
4884 } 4884 }
4885 if (sd->children)
4886 {
4887 eina_array_free(sd->children);
4888 sd->children = NULL;
4889 }
4885 4890
4886 sd->on_destroy = EINA_TRUE; 4891 sd->on_destroy = EINA_TRUE;
4887 efl_destructor(efl_super(obj, EFL_UI_WIDGET_CLASS)); 4892 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)
3182 eina_array_free(sd->profile.available); 3182 eina_array_free(sd->profile.available);
3183 sd->profile.available = NULL; 3183 sd->profile.available = NULL;
3184 3184
3185 eina_array_free(sd->planned_changes);
3186 sd->planned_changes = NULL;
3187
3185 free(sd->wm_rot.rots); 3188 free(sd->wm_rot.rots);
3186 sd->wm_rot.rots = NULL; 3189 sd->wm_rot.rots = NULL;
3187 3190