eo: do not allocate extension if deleting

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

Reviewers: woohyun, zmike, eagleeye

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11524
This commit is contained in:
Marcel Hollerbach 2020-03-20 11:32:35 +00:00 committed by Carsten Haitzler (Rasterman)
parent e9493fbafc
commit 64f7edc7fc
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)