diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2018-06-06 14:20:11 -0500 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2018-06-06 14:20:11 -0500 |
commit | 8d5a39861096d56924b083861b6e86d294ca6b49 (patch) | |
tree | 09cd791283ecc7995f4d579a0e23ae7d2d25414a | |
parent | 07d7ae4657301719451c2b28fbb79f6a2b25e195 (diff) | |
download | efl-8d5a39861096d56924b083861b6e86d294ca6b49.tar.gz |
eo: _efl_unref correctly
Summary:
this function calls _efl_ref in the beginning, so _efl_unref them in the
end. This fixes bugs where wrong evas_object_del is called to often,
which would lead to the internal refcount rising instead of getting to
0.
Reviewers: cedric, zmike, stefan_schmidt, q66
Reviewed By: zmike
Subscribers: cedric, #committers, zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6246
-rw-r--r-- | src/lib/eo/eo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 9c7f2e0252..fa071d6633 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -1920,6 +1920,7 @@ efl_unref(const Eo *obj_id) obj->klass->desc->name, obj_id, obj->user_refcount); _eo_log_obj_report((Eo_Id)obj_id, EINA_LOG_LEVEL_ERR, __FUNCTION__, __FILE__, __LINE__); EO_OBJ_DONE(obj_id); + _efl_unref(obj); return; } _efl_unref(obj); |