eo: as efl_del is not an Eo API call anymore, manually protect call with refcount.
authorCedric Bail <cedric@osg.samsung.com>
Sun, 13 May 2018 05:11:33 +0000 (22:11 -0700)
committerWonki Kim <wonki_.kim@samsung.com>
Fri, 1 Jun 2018 03:52:03 +0000 (12:52 +0900)
src/lib/eo/eo_base_class.c

index d3c7619..3dcd893 100644 (file)
@@ -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