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--;
if (it->delete_me)
{
_item_del_pre_hook(it);
_elm_widget_item_free(it);
}
elm_widget_item_del(it);
it->popping = EINA_FALSE;
evas_object_unref(obj);