elementary: clear callbacks before destroying object to avoid crash.

@fix

T3188
This commit is contained in:
Cedric BAIL 2016-07-06 10:39:23 -07:00
parent 7b61ff8722
commit 323000c83b
1 changed files with 1 additions and 0 deletions

View File

@ -4116,6 +4116,7 @@ _internal_elm_gengrid_clear(Evas_Object *obj,
if (next) itn = ELM_GEN_ITEM_FROM_INLIST(next);
if (itn) itn->walking++; /* prevent early death of subitem */
_item_mouse_callbacks_del(it, VIEW(it));
it->del_cb(it);
eo_del(EO_OBJ(it));
if (itn) itn->walking--;