summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Lees <sflees@suse.de>2016-07-07 10:13:03 +0930
committerSimon Lees <sflees@suse.de>2016-07-07 10:13:03 +0930
commit44266e7aa9c6e261864c4872a2850e1ad636d5b0 (patch)
treeb3968e4abc5e3759a0b215bde22a1df843684e6c
parentd2c060e4e551345e92e7063f87176e3788058e51 (diff)
clear callbacks before destroying object to avoid crash.
T3188 This is a backport of Cedric's fix for 323000c83b339f0ead866615dcca442de9a1da77 in the efl repo
-rw-r--r--src/lib/elm_gengrid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 729f9cdee..f94bfd22d 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -4064,6 +4064,7 @@ _internal_elm_gengrid_clear(Evas_Object *obj,
4064 4064
4065 if (next) itn = ELM_GEN_ITEM_FROM_INLIST(next); 4065 if (next) itn = ELM_GEN_ITEM_FROM_INLIST(next);
4066 if (itn) itn->walking++; /* prevent early death of subitem */ 4066 if (itn) itn->walking++; /* prevent early death of subitem */
4067 _item_mouse_callbacks_del(it, VIEW(it));
4067 it->del_cb(it); 4068 it->del_cb(it);
4068 eo_del(EO_OBJ(it)); 4069 eo_del(EO_OBJ(it));
4069 if (itn) itn->walking--; 4070 if (itn) itn->walking--;