evas smart callback deletion no longer crashes when called during object deletion

This commit is contained in:
discomfitor 2013-10-16 17:12:50 +01:00
parent 06c3c0cd0c
commit 9c83f34420
1 changed files with 2 additions and 1 deletions

View File

@ -889,8 +889,9 @@ evas_object_smart_callback_del_full(Evas_Object *eo_obj, const char *event, Evas
MAGIC_CHECK(eo_obj, Evas_Object, MAGIC_OBJ);
return NULL;
MAGIC_CHECK_END();
o = eo_data_scope_get(eo_obj, MY_CLASS);
if (!event) return NULL;
o = eo_data_scope_get(eo_obj, MY_CLASS);
if (!o) return NULL;
const _Evas_Event_Description *event_desc = eina_hash_find(signals_hash_table, event);
if (!event_desc) return NULL;