raster pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=35161f75fcedbe1ccffb5e6809f44e287265645d

commit 35161f75fcedbe1ccffb5e6809f44e287265645d
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Mon Feb 17 21:09:53 2014 +0900

    naviframe: Fix elm_naviframe_item_pop_to not to attempt to remove removed 
item
    
    Summary:
    Previously, the following error message is shown.
             eina_inlist_remove() safety check failed: item does not appear to 
be part of an inlist!
             Now, eina_inlist_remove() is removed from elm_naviframe_item_pop_to
             because eina_inlist_remove() is called in _item_del_pre_hook.
    
    Reviewers: seoz, raster
    
    Reviewed By: raster
    
    CC: Hermet
    
    Differential Revision: https://phab.enlightenment.org/D553
---
 src/lib/elc_naviframe.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index b47a72d..a9a453e 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -1764,7 +1764,7 @@ EAPI void
 elm_naviframe_item_pop_to(Elm_Object_Item *it)
 {
    Elm_Naviframe_Item *nit;
-   Eina_Inlist *l, *prev_l;
+   Eina_Inlist *l;
 
    ELM_NAVIFRAME_ITEM_CHECK_OR_RETURN(it);
 
@@ -1784,12 +1784,9 @@ elm_naviframe_item_pop_to(Elm_Object_Item *it)
 
         if (iit == nit) break;
 
-        prev_l = l->prev;
-        sd->stack = eina_inlist_remove(sd->stack, l);
+        l = l->prev;
 
         elm_widget_item_del(iit);
-
-        l = prev_l;
      }
 
    sd->on_deletion = EINA_FALSE;

-- 


Reply via email to