elm genlist: Fixed genlist crash issue when huge amount of items are expanded/contrac...
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 20 Apr 2012 10:50:42 +0000 (10:50 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 20 Apr 2012 10:50:42 +0000 (10:50 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@70358 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_genlist.c

index 4505d97..be96aff 100644 (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);