summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-05-14 14:54:45 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-22 16:55:09 -0700
commitd694cea4c1e006c4c93c5ad76e656c41d20d5346 (patch)
treeb986b8d882fe0a48ae587fd7a58c61eb06b6fef4
parent9c5478e67c4743eef9f317878d07a4da6495d5e7 (diff)
downloadefl-d694cea4c1e006c4c93c5ad76e656c41d20d5346.tar.gz
edje: simplify part handling as we are now guaranteed that a part as no parent when reaching the del intercept.
-rw-r--r--src/lib/edje/edje_part_helper.h10
1 files 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;