summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eo/eo.c5
-rw-r--r--src/lib/eo/eo_private.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index c8039f4f94..e11ef13ec4 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -1466,8 +1466,8 @@ _eo_data_xref_internal(const char *file, int line, _Eo_Object *obj, const _Eo_Cl
1466 data = _eo_data_scope_safe_get(obj, klass); 1466 data = _eo_data_scope_safe_get(obj, klass);
1467 if (data == NULL) return NULL; 1467 if (data == NULL) return NULL;
1468 } 1468 }
1469 (obj->datarefcount)++;
1470#ifdef EO_DEBUG 1469#ifdef EO_DEBUG
1470 (obj->datarefcount)++;
1471 Eo_Xref_Node *xref = calloc(1, sizeof(*xref)); 1471 Eo_Xref_Node *xref = calloc(1, sizeof(*xref));
1472 xref->ref_obj = _eo_obj_id_get(ref_obj); 1472 xref->ref_obj = _eo_obj_id_get(ref_obj);
1473 xref->file = file; 1473 xref->file = file;
@@ -1494,8 +1494,10 @@ _eo_data_xunref_internal(_Eo_Object *obj, void *data, const _Eo_Object *ref_obj)
1494 ERR("Data %p is not in the data range of the object %p (%s).", data, (Eo *)obj->headr.id, obj->klass->desc->name); 1494 ERR("Data %p is not in the data range of the object %p (%s).", data, (Eo *)obj->headr.id, obj->klass->desc->name);
1495 } 1495 }
1496#else 1496#else
1497 (void) obj;
1497 (void) data; 1498 (void) data;
1498#endif 1499#endif
1500#ifdef EO_DEBUG
1499 if (obj->datarefcount == 0) 1501 if (obj->datarefcount == 0)
1500 { 1502 {
1501 ERR("Data for object %zx (%s) is already not referenced.", (size_t)_eo_obj_id_get(obj), obj->klass->desc->name); 1503 ERR("Data for object %zx (%s) is already not referenced.", (size_t)_eo_obj_id_get(obj), obj->klass->desc->name);
@@ -1504,7 +1506,6 @@ _eo_data_xunref_internal(_Eo_Object *obj, void *data, const _Eo_Object *ref_obj)
1504 { 1506 {
1505 (obj->datarefcount)--; 1507 (obj->datarefcount)--;
1506 } 1508 }
1507#ifdef EO_DEBUG
1508 Eo_Xref_Node *xref = NULL; 1509 Eo_Xref_Node *xref = NULL;
1509 EINA_INLIST_FOREACH(obj->data_xrefs, xref) 1510 EINA_INLIST_FOREACH(obj->data_xrefs, xref)
1510 { 1511 {
diff --git a/src/lib/eo/eo_private.h b/src/lib/eo/eo_private.h
index e448bbd2ba..a05bdf62a9 100644
--- a/src/lib/eo/eo_private.h
+++ b/src/lib/eo/eo_private.h
@@ -99,7 +99,9 @@ struct _Eo_Object
99 Eo_Del_Intercept del_intercept; 99 Eo_Del_Intercept del_intercept;
100 100
101 short refcount; 101 short refcount;
102#ifdef EO_DEBUG
102 short datarefcount; 103 short datarefcount;
104#endif
103 105
104 Eina_Bool condtor_done:1; 106 Eina_Bool condtor_done:1;
105 Eina_Bool finalized:1; 107 Eina_Bool finalized:1;