summaryrefslogtreecommitdiffstats
path: root/libdimension/interior.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/interior.c')
-rw-r--r--libdimension/interior.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/interior.c b/libdimension/interior.c
index 0eec274..87b5059 100644
--- a/libdimension/interior.c
+++ b/libdimension/interior.c
@@ -42,10 +42,10 @@ 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);
}
- dmnsn_delete_refcount(interior->refcount);
dmnsn_free(interior);
}
}