naviframe: Use elm_widget_item_del() when you want to delete the item

data.

It will call del_pre_func and free the item data.
Special thanks to glima for the report.
This commit is contained in:
Daniel Juyung Seo 2014-01-22 23:33:16 +09:00
parent 404093c701
commit e7528a2e78
1 changed files with 1 additions and 4 deletions

View File

@ -1707,10 +1707,7 @@ _item_pop(Eo *obj, void *_pd, va_list *list)
{ {
it->ref--; it->ref--;
if (it->delete_me) if (it->delete_me)
{ elm_widget_item_del(it);
_item_del_pre_hook(it);
_elm_widget_item_free(it);
}
it->popping = EINA_FALSE; it->popping = EINA_FALSE;
evas_object_unref(obj); evas_object_unref(obj);