cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=23e2c0bdb8080316c43151e6f2750546d8f2473d

commit 23e2c0bdb8080316c43151e6f2750546d8f2473d
Author: Cedric Bail <[email protected]>
Date:   Sat May 12 22:11:33 2018 -0700

    eo: as efl_del is not an Eo API call anymore, manually protect call with 
refcount.
---
 src/lib/eo/eo_base_class.c | 4 ++++
 1 file changed, 4 insertions(+)

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

-- 


Reply via email to