forked from enlightenment/efl
eo: as efl_del is not an Eo API call anymore, manually protect call with refcount.
This commit is contained in:
parent
48b8118123
commit
23e2c0bdb8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue