cedric pushed a commit to branch master.

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

commit 6bb450d7ee751ec197749450353c809c44b50417
Author: Cedric Bail <ced...@osg.samsung.com>
Date:   Wed May 2 13:19:35 2018 -0700

    ecore: first invalidate the loop and its children, then destroy all the 
object capability.
    
    Differential Revision: https://phab.enlightenment.org/D6089
---
 src/lib/ecore/efl_loop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/ecore/efl_loop.c b/src/lib/ecore/efl_loop.c
index f85948e4c2..3c2ca6b7a4 100644
--- a/src/lib/ecore/efl_loop.c
+++ b/src/lib/ecore/efl_loop.c
@@ -323,6 +323,8 @@ _efl_loop_efl_object_constructor(Eo *obj, Efl_Loop_Data *pd)
 EOLIAN static void
 _efl_loop_efl_object_invalidate(Eo *obj, Efl_Loop_Data *pd)
 {
+   efl_invalidate(efl_super(obj, EFL_LOOP_CLASS));
+
    _ecore_main_content_clear(obj, pd);
 
    // Even if we are just refcounting provider, efl_provider_find won't reach 
them after invalidate
@@ -345,8 +347,6 @@ _efl_loop_efl_object_invalidate(Eo *obj, Efl_Loop_Data *pd)
         _mainloop_singleton = NULL;
         _mainloop_singleton_data = NULL;
      }
-
-   efl_invalidate(efl_super(obj, EFL_LOOP_CLASS));
 }
 
 EOLIAN static void

-- 


Reply via email to