[genlist] fix no-cache to delete edje object properly 03/80603/1
authorSangHyeon Lee <sh10233.lee@samsung.com>
Tue, 19 Jul 2016 05:28:02 +0000 (14:28 +0900)
committerSangHyeon Lee <sh10233.lee@samsung.com>
Tue, 19 Jul 2016 05:29:12 +0000 (14:29 +0900)
Change-Id: Ie560ce225dabda7d4a03d94aa2d116cd70e71ec5
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/mobile_lib/elm_genlist.c

index ff22c02..30c7aaf 100644 (file)
@@ -345,7 +345,12 @@ _item_cache_push(Elm_Gen_Item *it)
    Elm_Genlist_Data *sd = GL_IT(it)->wsd;
    Item_Cache *ic = NULL;
 
-   if (sd->no_cache) return;
+   if (sd->no_cache)
+     {
+        if (VIEW(it)) evas_object_del(VIEW(it));
+        VIEW(it) = NULL;
+        return;
+     }
 
    if (sd->item_cache_count >= sd->item_cache_max)
     {