elementary/naviframe - + NULL check

SVN revision: 64374
This commit is contained in:
ChunEon Park 2011-10-25 05:05:56 +00:00
parent 8d85b136bf
commit fe364aa601
1 changed files with 9 additions and 5 deletions

View File

@ -147,12 +147,16 @@ _del_hook(Evas_Object *obj)
wd = elm_widget_data_get(obj);
if (!wd) return;
while (wd->stack->last)
if (wd->stack)
{
it = EINA_INLIST_CONTAINER_GET(wd->stack->last, Elm_Naviframe_Item);
wd->stack = eina_inlist_remove(wd->stack, wd->stack->last);
_item_del(it);
if (!wd->stack) break;
while (wd->stack->last)
{
it = EINA_INLIST_CONTAINER_GET(wd->stack->last,
Elm_Naviframe_Item);
wd->stack = eina_inlist_remove(wd->stack, wd->stack->last);
_item_del(it);
if (!wd->stack) break;
}
}
free(wd);
}