summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-03-13 15:29:21 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-03-13 15:29:21 -0700
commit425a4473792ca854c36a5b7eadf232f5521abe4f (patch)
treea8e101a02baf3c146b2523360ef24348b1584b10 /src/lib/eo/eo_base_class.c
parentfd82c2521ebb9a324db8fdebd2c9a62b76ee6dc9 (diff)
eo: fix invalidate to always happen.
Diffstat (limited to 'src/lib/eo/eo_base_class.c')
-rw-r--r--src/lib/eo/eo_base_class.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 7468172..1047154 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -2050,6 +2050,12 @@ _efl_object_destructor(Eo *obj, Efl_Object_Data *pd)
2050 2050
2051 DBG("%p - %s.", obj, efl_class_name_get(obj)); 2051 DBG("%p - %s.", obj, efl_class_name_get(obj));
2052 2052
2053 // If the object has been invalidated yet, time to do it
2054 // This can happen when the object has no parent and get
2055 // deleted by efl_unref.
2056 if (!pd->invalidate)
2057 efl_invalidate(obj);
2058
2053 // special removal - remove from children list by hand after getting 2059 // special removal - remove from children list by hand after getting
2054 // child handle in case unparent method is overridden and does 2060 // child handle in case unparent method is overridden and does
2055 // extra things like removes other children too later on in the list 2061 // extra things like removes other children too later on in the list