summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWoochanlee <wc0917.lee@samsung.com>2020-01-30 06:25:36 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-01-31 13:52:51 +0100
commit260964dbdd82354e6a616e3d3b96bd184fd139aa (patch)
treef3b84008febad583b1549a89d8faa13bc05d0b08
parente0b4ddaeb8c266e4a499984138c5bcd8f958645b (diff)
evas_object_grid: Fix memory leak.
_evas_object_smart_clipped_init() (in evas_object_smart.c) is called when evas_object_grid is created. And a rectangle is created in the function. But, the rectangle is not deleted even though evas_objecct_grid is deleted. This patch fixes the problem by deleting it in smart_del fucntion. Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11140
-rw-r--r--src/lib/evas/canvas/evas_object_grid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_grid.c b/src/lib/evas/canvas/evas_object_grid.c
index 5dd69e1..72cb176 100644
--- a/src/lib/evas/canvas/evas_object_grid.c
+++ b/src/lib/evas/canvas/evas_object_grid.c
@@ -187,6 +187,8 @@ _evas_object_grid_smart_del(Evas_Object *o)
187 free(opt); 187 free(opt);
188 l = eina_list_remove_list(l, l); 188 l = eina_list_remove_list(l, l);
189 } 189 }
190
191 _evas_object_grid_parent_sc->del(o);
190} 192}
191 193
192static void 194static void