summaryrefslogtreecommitdiffstats
path: root/libdimension/interior.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/interior.c')
-rw-r--r--libdimension/interior.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libdimension/interior.c b/libdimension/interior.c
index 87b5059..0594e06 100644
--- a/libdimension/interior.c
+++ b/libdimension/interior.c
@@ -33,7 +33,7 @@ dmnsn_new_interior(void)
dmnsn_interior *interior = dmnsn_malloc(sizeof(dmnsn_interior));
interior->ior = 1.0;
interior->free_fn = NULL;
- interior->refcount = dmnsn_new_refcount();
+ interior->refcount = 0;
return interior;
}
@@ -42,7 +42,6 @@ void
dmnsn_delete_interior(dmnsn_interior *interior)
{
if (interior && DMNSN_DECREF(interior)) {
- dmnsn_delete_refcount(interior->refcount);
if (interior->free_fn) {
interior->free_fn(interior->ptr);
}