elementary/naviframe - elm_widget_item_free is called twice.
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Feb 2012 05:15:17 +0000 (05:15 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 18 Feb 2012 05:15:17 +0000 (05:15 +0000)
elm_object_item_del is calling it after.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68099 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elc_naviframe.c

index 17f2306..3221cd5 100644 (file)
@@ -843,7 +843,6 @@ _item_del_pre_hook(Elm_Object_Item *it)
      {
         wd->stack = eina_inlist_remove(wd->stack, EINA_INLIST_GET(navi_it));
         _item_del(navi_it);
-        elm_widget_item_free(navi_it);
         //If the item is only one, the stack will be empty
         if (!wd->stack) return EINA_TRUE;
         navi_it = EINA_INLIST_CONTAINER_GET(wd->stack->last,
@@ -856,7 +855,6 @@ _item_del_pre_hook(Elm_Object_Item *it)
      {
         wd->stack = eina_inlist_remove(wd->stack, EINA_INLIST_GET(navi_it));
         _item_del(navi_it);
-        elm_widget_item_free(navi_it);
      }
 
    return EINA_TRUE;