summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-07-29 23:57:45 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-07-29 23:57:45 +0200
commit3e62907babc1e98d986e1c45053fe3e78c3d0dec (patch)
tree046e71250df9dc58989b603917630b47d2aeb520
parent0a98021f3423ee96973a7ee786a57c3815814493 (diff)
eo2: use same logic as in eo_add_internal
-rw-r--r--src/lib/eo/eo_private.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eo/eo_private.h b/src/lib/eo/eo_private.h
index 7e68b6d7c1..4f53ed5479 100644
--- a/src/lib/eo/eo_private.h
+++ b/src/lib/eo/eo_private.h
@@ -190,13 +190,13 @@ _eo_del_internal(const char *file, int line, _Eo *obj)
190 if (klass->desc->version == EO2_VERSION) 190 if (klass->desc->version == EO2_VERSION)
191 { 191 {
192 // FIXME: eo2 192 // FIXME: eo2
193 do_err = EINA_TRUE; 193 do_err = EINA_FALSE;
194 eo2_do((Eo *)obj->obj_id, eo2_destructor();); 194 eo2_do((Eo *)obj->obj_id, eo2_destructor(););
195 } 195 }
196 else 196 else
197 do_err = eo_do((Eo *)obj->obj_id, eo_destructor()); 197 do_err = !eo_do((Eo *)obj->obj_id, eo_destructor());
198 198
199 if (EINA_UNLIKELY(!do_err)) 199 if (EINA_UNLIKELY(do_err))
200 { 200 {
201 ERR("in %s:%d: Object of class '%s' - One of the object destructors have failed.", 201 ERR("in %s:%d: Object of class '%s' - One of the object destructors have failed.",
202 file, line, klass->desc->name); 202 file, line, klass->desc->name);