remove resize callback on gadcon parent

this sometimes gets called after the gadcon is deleted which leads to a crash
This commit is contained in:
Mike Blumenkrantz 2013-12-31 14:26:19 -05:00
parent 6aedd4760d
commit 0943d9f7cc
1 changed files with 3 additions and 0 deletions

View File

@ -2016,6 +2016,9 @@ _e_gadcon_free(E_Gadcon *gc)
if (gc->o_container) evas_object_del(gc->o_container);
eina_stringshare_del(gc->name);
eina_stringshare_del(gc->edje.swallow_name);
if (gc->edje.o_parent)
evas_object_event_callback_del_full(gc->edje.o_parent, EVAS_CALLBACK_RESIZE,
(Evas_Object_Event_Cb)_e_gadcon_parent_resize_cb, gc);
if (gc->config_dialog) e_object_del(E_OBJECT(gc->config_dialog));
if (gc->drop_handler) e_drop_handler_del(gc->drop_handler);
if (gc->cfg_delete)