summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elc_naviframe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elc_naviframe.c')
-rw-r--r--src/lib/elementary/elc_naviframe.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/elementary/elc_naviframe.c b/src/lib/elementary/elc_naviframe.c
index cd53e7a..a6d8f61 100644
--- a/src/lib/elementary/elc_naviframe.c
+++ b/src/lib/elementary/elc_naviframe.c
@@ -627,11 +627,10 @@ end:
627 * This case can happen when an item is deleted by elm_object_item_del() 627 * This case can happen when an item is deleted by elm_object_item_del()
628 * right after the item is newly pushed. 628 * right after the item is newly pushed.
629 */ 629 */
630 if ((nfo->self == nit) || (nfo->related == nit)) 630 if (nit == nfo->self)
631 { 631 nfo->self = NULL;
632 nfo->self = NULL; 632 else if (nit == nfo->related)
633 nfo->related = NULL; 633 nfo->related = NULL;
634 }
635 } 634 }
636 635
637 _item_free(nit); 636 _item_free(nit);