cedric pushed a commit to branch master.

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

commit 2a14a283e8e68ccdf55b45d0d19840d21151af3d
Author: Cedric Bail <[email protected]>
Date:   Mon Mar 19 16:47:28 2018 -0700

    eo: slight improvement of invalidate code as parent_set(NULL) will be valid 
on an invalidated object.
---
 src/lib/eo/eo_base_class.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 872ae3c16b..3840b18a52 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -2173,8 +2173,7 @@ static void
 _efl_object_invalidate(Eo *obj, Efl_Object_Data *pd)
 {
    _efl_pending_futures_clear(pd);
-   if (efl_parent_get(obj))
-     efl_parent_set(obj, NULL);
+   efl_parent_set(obj, NULL);
    pd->invalidate = EINA_TRUE;
 }
 

-- 


Reply via email to