aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-03-19 16:47:28 -0700
committerCedric Bail <cedric@osg.samsung.com>2018-03-19 16:47:28 -0700
commit2a14a283e8e68ccdf55b45d0d19840d21151af3d (patch)
tree8bea71fb10fde8ddcc32088ed1e908976754e348
parenteo: automatically cancel a future that is attached to an invalidated object. (diff)
downloadefl-2a14a283e8e68ccdf55b45d0d19840d21151af3d.tar.gz
eo: slight improvement of invalidate code as parent_set(NULL) will be valid on an invalidated object.
-rw-r--r--src/lib/eo/eo_base_class.c3
1 files changed, 1 insertions, 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;
}