summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-22 23:33:16 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-22 23:33:47 +0900
commitc38ba2ee7c4bf30395fb3f67ea9cc8d3f06c1d45 (patch)
tree845d09794099d325329dedb5fb75195d9b741202
parentbb39f8616f682af873ccf407086f8ce092369a11 (diff)
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.
-rw-r--r--src/lib/elc_naviframe.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/elc_naviframe.c b/src/lib/elc_naviframe.c
index c89fd0a4d..53095c801 100644
--- a/src/lib/elc_naviframe.c
+++ b/src/lib/elc_naviframe.c
@@ -1707,10 +1707,7 @@ _item_pop(Eo *obj, void *_pd, va_list *list)
1707 { 1707 {
1708 it->ref--; 1708 it->ref--;
1709 if (it->delete_me) 1709 if (it->delete_me)
1710 { 1710 elm_widget_item_del(it);
1711 _item_del_pre_hook(it);
1712 _elm_widget_item_free(it);
1713 }
1714 it->popping = EINA_FALSE; 1711 it->popping = EINA_FALSE;
1715 evas_object_unref(obj); 1712 evas_object_unref(obj);
1716 1713