summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-03 16:32:11 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:18 -0700
commitc28eb28728c280d3fd19ef46790fce6f9465d4f5 (patch)
tree6fef85cdb252d7ead743d13564ff11aaa2ac6805 /src/lib/eo/eo.c
parentdcfddcd283e01e36096d573af9b46f512a39272c (diff)
eo: check for allow_parent_unref during efl_unref and silence warning.
Differential Revision: https://phab.enlightenment.org/D6097
Diffstat (limited to 'src/lib/eo/eo.c')
-rw-r--r--src/lib/eo/eo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 558ee29..9be954f 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1885,7 +1885,8 @@ efl_unref(const Eo *obj_id)
1885 if (EINA_UNLIKELY(obj->user_refcount == 1 && 1885 if (EINA_UNLIKELY(obj->user_refcount == 1 &&
1886 obj->parent)) 1886 obj->parent))
1887 { 1887 {
1888 CRI("Calling efl_unref instead of efl_del or efl_parent_set(NULL). Temporary fallback in place triggered."); 1888 if (!obj->allow_parent_unref)
1889 CRI("Calling efl_unref instead of efl_del or efl_parent_set(NULL). Temporary fallback in place triggered.");
1889 EO_OBJ_DONE(obj_id); 1890 EO_OBJ_DONE(obj_id);
1890 efl_del(obj_id); 1891 efl_del(obj_id);
1891 return ; 1892 return ;