eo: enforce auto_unref logic at the end of efl_unref execution.

This allow for the safe use of efl_ref/efl_unref around an efl_part
without calling any function on that part.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8358
This commit is contained in:
Cedric BAIL 2019-03-14 14:15:28 -07:00
parent 2f4b581300
commit f11dfc0bc8
1 changed files with 3 additions and 0 deletions

View File

@ -1993,6 +1993,9 @@ efl_unref(const Eo *obj_id)
}
_efl_unref(obj);
}
_apply_auto_unref(obj, obj_id);
_efl_unref(obj);
EO_OBJ_DONE(obj_id);
}