elm genlist: Fixed genlist crash issue when huge amount of items are expanded/contracted in a short time.

SVN revision: 70358
This commit is contained in:
Daniel Juyung Seo 2012-04-20 10:50:42 +00:00
parent 3663ddc1d0
commit d133cec514
1 changed files with 9 additions and 1 deletions

View File

@ -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);