summaryrefslogtreecommitdiff
path: root/src/lib/edje
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-24 16:02:20 -0700
commit94a9a733a5df2003d4bea76fe24432d740a3277e (patch)
treea9a53e989329c716a8d679d37585cdae2b4f7287 /src/lib/edje
parent0bf7a5ea13b4c7670b9468150c81da6675c2a2ab (diff)
edje: simplify part handling as we are now guaranteed that a part as no parent when reaching the del intercept.
Diffstat (limited to 'src/lib/edje')
-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)
35 if (*static_var) 35 if (*static_var)
36 { 36 {
37 if (*static_var != proxy) 37 if (*static_var != proxy)
38 efl_del_intercept_set(*static_var, NULL); 38 {
39 } 39 efl_del_intercept_set(*static_var, NULL);
40 if (efl_parent_get(proxy)) 40 efl_unref(*static_var);
41 { 41 }
42 efl_ref(proxy);
43 efl_parent_set(proxy, NULL);
44 } 42 }
45 efl_reuse(proxy); 43 efl_reuse(proxy);
46 *static_var = proxy; 44 *static_var = proxy;