diff options
| author | Franklin Wei <git@fwei.tk> | 2016-04-03 12:15:44 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-04-03 12:15:44 -0400 |
| commit | 724f4ee59b0af7b64a3317af3c9ee5d3f45e9fc4 (patch) | |
| tree | 9e1f93726995bfd2d8e2e355f7ca3d0869be037f /src/obj.c | |
| parent | 73c9244faee21a65e2143cc52dcbcf5cfe0648c6 (diff) | |
| download | netcosm-724f4ee59b0af7b64a3317af3c9ee5d3f45e9fc4.zip netcosm-724f4ee59b0af7b64a3317af3c9ee5d3f45e9fc4.tar.gz netcosm-724f4ee59b0af7b64a3317af3c9ee5d3f45e9fc4.tar.bz2 netcosm-724f4ee59b0af7b64a3317af3c9ee5d3f45e9fc4.tar.xz | |
various fixes
Diffstat (limited to 'src/obj.c')
| -rw-r--r-- | src/obj.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); |