From 4479d25609e26253c4e5fcfc78b093c0b45cefb8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 28 May 2011 18:16:04 -0600 Subject: Don't allocate reference counts on the heap. --- libdimension/object.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libdimension/object.c') diff --git a/libdimension/object.c b/libdimension/object.c index f73ea02..fecfdbe 100644 --- a/libdimension/object.c +++ b/libdimension/object.c @@ -39,7 +39,7 @@ dmnsn_new_object(void) object->inside_fn = NULL; object->initialize_fn = NULL; object->free_fn = NULL; - object->refcount = dmnsn_new_refcount(); + object->refcount = 0; return object; } @@ -48,7 +48,6 @@ void dmnsn_delete_object(dmnsn_object *object) { if (object && DMNSN_DECREF(object)) { - dmnsn_delete_refcount(object->refcount); DMNSN_ARRAY_FOREACH (dmnsn_object **, child, object->children) { dmnsn_delete_object(*child); } -- cgit v1.2.3