summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-02-18 15:53:40 +0000
committerTom Hacohen <tom@stosb.com>2016-02-18 15:59:36 +0000
commitec2f92e35f5a0836933d82b6b7f518a1d7550afc (patch)
treecc241df03e2bc645267cba2f3b7339e7b19488ca
parent41d92d0893fde778cde8131001c2815ad47d6880 (diff)
downloadefl-ec2f92e35f5a0836933d82b6b7f518a1d7550afc.tar.gz
Eo: Print an ERR when deleting an object with data refs.
-rw-r--r--src/lib/eo/eo_private.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/eo/eo_private.h b/src/lib/eo/eo_private.h
index 869745c364..f3ec7db02b 100644
--- a/src/lib/eo/eo_private.h
+++ b/src/lib/eo/eo_private.h
@@ -245,12 +245,11 @@ _eo_free(_Eo_Object *obj)
{
_Eo_Class *klass = (_Eo_Class*) obj->klass;
-#ifdef EO_DEBUG
if (obj->datarefcount)
{
ERR("Object %p data still referenced %d time(s).", obj, obj->datarefcount);
}
-#endif
+
_eo_id_release((Eo_Id) _eo_id_get(obj));
eina_spinlock_take(&klass->objects.trash_lock);