eo: do not allocate extension if deleting

->ext is getting freed during invalidate. If we unregister during
destruction (which is something that might happen) we should not
allocate the extension again.

Differential Revision: https://phab.enlightenment.org/D11524
This commit is contained in:
Marcel Hollerbach 2020-03-17 09:58:44 +01:00
parent e9493fbafc
commit a935695aad
1 changed files with 1 additions and 1 deletions

View File

@ -2325,7 +2325,7 @@ _efl_object_event_callback_forwarder_del(Eo *obj, Efl_Object_Data *pd EINA_UNUSE
dpd = efl_data_scope_safe_get(new_obj, EFL_OBJECT_CLASS);
if (!dpd) return ;
ext = _efl_object_extension_need(dpd);
ext = dpd->ext;
if (!ext) return ;
EINA_LIST_FOREACH(eina_hash_find(ext->forwarders, desc), l, forwarder)