cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=94a9a733a5df2003d4bea76fe24432d740a3277e
commit 94a9a733a5df2003d4bea76fe24432d740a3277e Author: Cedric BAIL <ced...@osg.samsung.com> Date: Mon May 14 14:54:45 2018 -0700 edje: simplify part handling as we are now guaranteed that a part as no parent when reaching the del intercept. --- src/lib/edje/edje_part_helper.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/lib/edje/edje_part_helper.h b/src/lib/edje/edje_part_helper.h index 165b680ea0..dbed9b1772 100644 --- a/src/lib/edje/edje_part_helper.h +++ b/src/lib/edje/edje_part_helper.h @@ -35,12 +35,10 @@ _part_proxy_del_cb(Eo *proxy, Eo **static_var) if (*static_var) { if (*static_var != proxy) - efl_del_intercept_set(*static_var, NULL); - } - if (efl_parent_get(proxy)) - { - efl_ref(proxy); - efl_parent_set(proxy, NULL); + { + efl_del_intercept_set(*static_var, NULL); + efl_unref(*static_var); + } } efl_reuse(proxy); *static_var = proxy; --