cedric pushed a commit to branch master.

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

commit bae1b25b8d4d2da8050c1ef0a87b58656c911a1b
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Mon Mar 12 11:17:02 2018 -0700

    eo: cleanup future on invalidate.
---
 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 14aca16476..7468172d36 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -2078,7 +2078,6 @@ composite_obj_back:
    if (pd->parent) goto err_parent;
 err_parent_back:
 
-   _efl_pending_futures_clear(pd);
    _wref_destruct(pd);
 
    // this isn't 100% correct, as the object is still "slightly" alive at this
@@ -2166,6 +2165,7 @@ _efl_object_finalize(Eo *obj, Efl_Object_Data *pd 
EINA_UNUSED)
 static void
 _efl_object_invalidate(Eo *obj EINA_UNUSED, Efl_Object_Data *pd)
 {
+   _efl_pending_futures_clear(pd);
    pd->invalidate = EINA_TRUE;
 }
 

-- 


Reply via email to