[Genlist] Fix memory leaks
authorTae-Hwan Kim <the81.kim@samsung.com>
Fri, 7 Jun 2013 14:06:29 +0000 (23:06 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 05:39:29 +0000 (14:39 +0900)
Change-Id: Ia847fa9e970fe873256575ecb8421414d96fd3b5

src/lib/elm_genlist.c

index f50ac3a..902119f 100644 (file)
@@ -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;