eo: as efl_del is not an Eo API call anymore, manually protect call with refcount.

This commit is contained in:
Cedric Bail 2018-05-12 22:11:33 -07:00 committed by Cedric BAIL
parent 48b8118123
commit 23e2c0bdb8
1 changed files with 4 additions and 0 deletions

View 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