summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-15 15:35:48 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:20 -0700
commit0cc07f4e6bdd6762fcb3327e7a127356b22eef04 (patch)
treefdeea1c021b86fa2357625a95838676209aaedd0 /src/lib/eo/eo_base_class.c
parent2894a2e3c3786e707fa736c64c59d73520fbba82 (diff)
eo: try to make efl_add and efl_add_ref refcounting sane in all case.
Diffstat (limited to 'src/lib/eo/eo_base_class.c')
-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 01a7add..66ae601 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -771,8 +771,7 @@ _efl_object_parent_set(Eo *obj, Efl_Object_Data *pd, Eo *parent_id)
771 pd->parent = parent_id; 771 pd->parent = parent_id;
772 parent_pd->children = eina_inlist_append(parent_pd->children, 772 parent_pd->children = eina_inlist_append(parent_pd->children,
773 EINA_INLIST_GET(eo_obj)); 773 EINA_INLIST_GET(eo_obj));
774 if (!prev_parent && pd->parent_sunk) efl_ref(obj); 774 if (!prev_parent) efl_ref(obj);
775 pd->parent_sunk = EINA_TRUE;
776 } 775 }
777 else 776 else
778 { 777 {