summaryrefslogtreecommitdiff
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-22 16:55:08 -0700
commit1258413a12dd2a806740633178803d8ade8ec657 (patch)
treee7cc9a4c69543d65e55ef55209a3234c3d4295b3
parent5c337b451bcdfc97a324469b6a3f17d5fc203723 (diff)
downloadefl-1258413a12dd2a806740633178803d8ade8ec657.tar.gz
eo: as efl_del is not an Eo API call anymore, manually protect call with refcount.
-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 d3c7619c26..3dcd8935b1 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -682,6 +682,8 @@ EAPI void
efl_del(const Eo *obj)
{
if (!obj) return ;
+ EO_OBJ_POINTER_RETURN(obj, oid);
+ _efl_ref(oid);
if (efl_parent_get((Eo *) obj))
{
efl_parent_set((Eo *) obj, NULL);
@@ -691,6 +693,8 @@ efl_del(const Eo *obj)
ERR("Calling efl_del on an object with no parent is not advised any more.");
efl_unref(obj);
}
+ _efl_unref(oid);
+ EO_OBJ_DONE(obj);
}
void