From 38eb14fc662b2a787d574bf664d526c9aebf1beb Mon Sep 17 00:00:00 2001 From: Tae-Hwan Kim Date: Fri, 7 Jun 2013 23:06:29 +0900 Subject: [PATCH] [Genlist] Fix memory leaks Change-Id: Ia847fa9e970fe873256575ecb8421414d96fd3b5 --- src/lib/elm_genlist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index f50ac3a..902119f 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -1662,7 +1662,6 @@ _item_realize(Elm_Gen_Item *it, const char *stacking_even; const char *stacking; const char *key; - const Eina_List *l; it->item->nocache_once = EINA_FALSE; @@ -1689,7 +1688,7 @@ _item_realize(Elm_Gen_Item *it, Eina_List *txts = elm_widget_stringlist_get (edje_object_data_get(VIEW(it), "texts")); - EINA_LIST_FOREACH(txts, l, key) + EINA_LIST_FREE(txts, key) { const Evas_Object *txt_obj = NULL; const char *type = NULL; -- 2.7.4