summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2011-10-25 05:05:56 +0000
committerChunEon Park <hermet@hermet.pe.kr>2011-10-25 05:05:56 +0000
commitfe364aa6015849e87778c823b23dd2d683e1ebf6 (patch)
treef55de60a9a7dd3cd8e9b7d320b7100a8d4627500 /legacy
parent8d85b136bf242372c5daf24473778fecc25a1e96 (diff)
elementary/naviframe - + NULL check
SVN revision: 64374
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/elc_naviframe.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/legacy/elementary/src/lib/elc_naviframe.c b/legacy/elementary/src/lib/elc_naviframe.c
index 9231b8a7c5..c14f9cc66f 100644
--- a/legacy/elementary/src/lib/elc_naviframe.c
+++ b/legacy/elementary/src/lib/elc_naviframe.c
@@ -147,12 +147,16 @@ _del_hook(Evas_Object *obj)
147 wd = elm_widget_data_get(obj); 147 wd = elm_widget_data_get(obj);
148 if (!wd) return; 148 if (!wd) return;
149 149
150 while (wd->stack->last) 150 if (wd->stack)
151 { 151 {
152 it = EINA_INLIST_CONTAINER_GET(wd->stack->last, Elm_Naviframe_Item); 152 while (wd->stack->last)
153 wd->stack = eina_inlist_remove(wd->stack, wd->stack->last); 153 {
154 _item_del(it); 154 it = EINA_INLIST_CONTAINER_GET(wd->stack->last,
155 if (!wd->stack) break; 155 Elm_Naviframe_Item);
156 wd->stack = eina_inlist_remove(wd->stack, wd->stack->last);
157 _item_del(it);
158 if (!wd->stack) break;
159 }
156 } 160 }
157 free(wd); 161 free(wd);
158} 162}