be more protective against obj refs on del in zoomap

This commit is contained in:
Carsten Haitzler 2013-04-16 20:26:17 +09:00
parent a0240e9f56
commit 94299c8160
1 changed files with 7 additions and 5 deletions

View File

@ -234,12 +234,14 @@ _e_smart_del(Evas_Object *obj)
INTERNAL_ENTRY;
if (sd->child_obj)
{
evas_object_event_callback_del(sd->child_obj, EVAS_CALLBACK_DEL,
_e_smart_child_del_hook);
evas_object_event_callback_del(sd->child_obj, EVAS_CALLBACK_RESIZE,
_e_smart_child_resize_hook);
evas_object_del(sd->child_obj);
Evas_Object *o = sd->child_obj;
sd->child_obj = NULL;
evas_object_event_callback_del(o, EVAS_CALLBACK_DEL,
_e_smart_child_del_hook);
evas_object_event_callback_del(o, EVAS_CALLBACK_RESIZE,
_e_smart_child_resize_hook);
evas_object_del(o);
}
E_FREE(sd);
}