summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVBS <vdtizen.sds@samsung.com>2015-02-04 08:30:06 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-02-04 08:30:07 +0900
commit84f28cc3871269440d53a26e64a43823041e9560 (patch)
treef097dfd17f3124e1fa66cb6ccd0cde83966d358b
parentfecad3a8d0a7f74ddf46c05003045c8e6bd12db3 (diff)
Gengrid : Fix memory leak in elm_gengrid_realized_items_update
Summary: Eina_List from elm_gengrid_realized_items_get must be freed by caller, but elm_gengrid_realized_items_update doesn't free Eina_List. So memory leak is happens. @fix Test Plan: Call elm_gengrid_realized_items_update repeatly and check memory share increase. Reviewers: raster, seoz Differential Revision: https://phab.enlightenment.org/D1903
-rw-r--r--src/lib/elm_gengrid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index f6506f5a2..3396211a3 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -4109,11 +4109,11 @@ _elm_gengrid_realized_items_get(Eo *obj EINA_UNUSED, Elm_Gengrid_Data *sd)
4109EOLIAN static void 4109EOLIAN static void
4110_elm_gengrid_realized_items_update(Eo *obj, Elm_Gengrid_Data *_pd EINA_UNUSED) 4110_elm_gengrid_realized_items_update(Eo *obj, Elm_Gengrid_Data *_pd EINA_UNUSED)
4111{ 4111{
4112 Eina_List *list, *l; 4112 Eina_List *list;
4113 Elm_Object_Item *it; 4113 Elm_Object_Item *it;
4114 4114
4115 list = elm_gengrid_realized_items_get(obj); 4115 list = elm_gengrid_realized_items_get(obj);
4116 EINA_LIST_FOREACH(list, l, it) 4116 EINA_LIST_FREE(list, it)
4117 elm_gengrid_item_update(it); 4117 elm_gengrid_item_update(it);
4118} 4118}
4119 4119