From: SangHyeon Lee Date: Tue, 19 Jul 2016 05:28:02 +0000 (+0900) Subject: [genlist] fix no-cache to delete edje object properly X-Git-Tag: accepted/tizen/common/20160721.175023~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F03%2F80603%2F1;p=platform%2Fupstream%2Felementary.git [genlist] fix no-cache to delete edje object properly Change-Id: Ie560ce225dabda7d4a03d94aa2d116cd70e71ec5 Signed-off-by: SangHyeon Lee --- diff --git a/src/mobile_lib/elm_genlist.c b/src/mobile_lib/elm_genlist.c index ff22c02..30c7aaf 100644 --- a/src/mobile_lib/elm_genlist.c +++ b/src/mobile_lib/elm_genlist.c @@ -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) {