From: Daniel Juyung Seo Date: Fri, 20 Apr 2012 10:50:42 +0000 (+0000) Subject: elm genlist: Fixed genlist crash issue when huge amount of items are expanded/contrac... X-Git-Tag: v1.0.0~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43932e7273a3c651e4e8ddda1a26346a7878e973;p=platform%2Fupstream%2Felementary.git elm genlist: Fixed genlist crash issue when huge amount of items are expanded/contracted in a short time. SVN revision: 70358 --- diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 4505d97..be96aff 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -872,7 +872,15 @@ _item_del(Elm_Gen_Item *it) if (!wd->anchor_item) wd->anchor_item = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->prev); } - if (wd->expanded_item == it) wd->expanded_item = NULL; + if (wd->expanded_item == it) + { + wd->expanded_item = NULL; + if (wd->tree_effect_animator) + { + ecore_animator_del(wd->tree_effect_animator); + wd->tree_effect_animator = NULL; + } + } if (wd->expanded_next_item == it) wd->expanded_next_item = NULL; if (it->parent) it->parent->item->items = eina_list_remove(it->parent->item->items, it);