diff options
author | Woochanlee <wc0917.lee@samsung.com> | 2020-01-30 06:25:36 +0000 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2020-01-31 13:52:51 +0100 |
commit | 260964dbdd82354e6a616e3d3b96bd184fd139aa (patch) | |
tree | f3b84008febad583b1549a89d8faa13bc05d0b08 | |
parent | e0b4ddaeb8c266e4a499984138c5bcd8f958645b (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.c | 2 |
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 5dd69e10a9..72cb176ecc 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 | ||
192 | static void | 194 | static void |