summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-05-12 22:11:33 -0700
committerCedric BAIL <cedric@osg.samsung.com>2018-05-24 16:02:19 -0700
commit23e2c0bdb8080316c43151e6f2750546d8f2473d (patch)
tree4d2d5aba367e3e3122a0f4690d48242ea22626f6 /src/lib/eo/eo_base_class.c
parent48b8118123aefe69ecb2d93f0787dd7a021814ad (diff)
eo: as efl_del is not an Eo API call anymore, manually protect call with refcount.
Diffstat (limited to 'src/lib/eo/eo_base_class.c')
-rw-r--r--src/lib/eo/eo_base_class.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index d3c7619..3dcd893 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -682,6 +682,8 @@ EAPI void
682efl_del(const Eo *obj) 682efl_del(const Eo *obj)
683{ 683{
684 if (!obj) return ; 684 if (!obj) return ;
685 EO_OBJ_POINTER_RETURN(obj, oid);
686 _efl_ref(oid);
685 if (efl_parent_get((Eo *) obj)) 687 if (efl_parent_get((Eo *) obj))
686 { 688 {
687 efl_parent_set((Eo *) obj, NULL); 689 efl_parent_set((Eo *) obj, NULL);
@@ -691,6 +693,8 @@ efl_del(const Eo *obj)
691 ERR("Calling efl_del on an object with no parent is not advised any more."); 693 ERR("Calling efl_del on an object with no parent is not advised any more.");
692 efl_unref(obj); 694 efl_unref(obj);
693 } 695 }
696 _efl_unref(oid);
697 EO_OBJ_DONE(obj);
694} 698}
695 699
696void 700void