raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=64f7edc7fc0596425cdc2a1db8aacf06430994f0

commit 64f7edc7fc0596425cdc2a1db8aacf06430994f0
Author: Marcel Hollerbach <[email protected]>
Date:   Fri Mar 20 11:32:35 2020 +0000

    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
---
 src/lib/eo/eo_base_class.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 27c21a3e78..44fe92cf4a 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -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)

-- 


Reply via email to