projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8efdbd
)
eo: fix invalidate to always happen.
author
Cedric BAIL
<cedric@osg.samsung.com>
Tue, 13 Mar 2018 22:29:21 +0000
(15:29 -0700)
committer
Wonki Kim
<wonki_.kim@samsung.com>
Tue, 10 Apr 2018 11:12:38 +0000
(20:12 +0900)
src/lib/eo/eo_base_class.c
patch
|
blob
|
history
diff --git
a/src/lib/eo/eo_base_class.c
b/src/lib/eo/eo_base_class.c
index
7468172
..
1047154
100644
(file)
--- 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)
DBG("%p - %s.", obj, efl_class_name_get(obj));
+ // If the object has been invalidated yet, time to do it
+ // This can happen when the object has no parent and get
+ // deleted by efl_unref.
+ if (!pd->invalidate)
+ efl_invalidate(obj);
+
// special removal - remove from children list by hand after getting
// child handle in case unparent method is overridden and does
// extra things like removes other children too later on in the list