From 724f4ee59b0af7b64a3317af3c9ee5d3f45e9fc4 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 3 Apr 2016 12:15:44 -0400 Subject: various fixes --- src/obj.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/obj.c') diff --git a/src/obj.c b/src/obj.c index 296fbb5..ce4a890 100644 --- a/src/obj.c +++ b/src/obj.c @@ -144,7 +144,7 @@ struct object_t *obj_copy(struct object_t *obj) struct object_t *obj_dup(struct object_t *obj) { - debugf("Adding an object reference to #%" PRI_OBJID ".\n", obj->id); + //debugf("Adding an object reference to #%" PRI_OBJID ".\n", obj->id); ++obj->refcount; return obj; } @@ -154,11 +154,9 @@ void obj_free(void *ptr) struct object_t *obj = ptr; --obj->refcount; - debugf("Freeing an object reference for #%" PRI_OBJID" (%s, %d).\n", obj->id, obj->name, obj->refcount); - if(!obj->refcount) { - debugf("Freeing object #%"PRI_OBJID"\n", obj->id); + //debugf("Freeing object #%"PRI_OBJID"\n", obj->id); if(obj->class->hook_destroy) obj->class->hook_destroy(obj); -- cgit v1.1