From d374841194f24c7cb1cdc52fc631fcb2982af358 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 16 May 2011 23:25:53 -0600 Subject: Add a refcount to objects. --- libdimension/texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdimension/texture.c') diff --git a/libdimension/texture.c b/libdimension/texture.c index 5f3b98d..2199103 100644 --- a/libdimension/texture.c +++ b/libdimension/texture.c @@ -43,9 +43,9 @@ void dmnsn_delete_texture(dmnsn_texture *texture) { if (texture && DMNSN_DECREF(texture)) { + dmnsn_delete_refcount(texture->refcount); dmnsn_delete_finish(texture->finish); dmnsn_delete_pigment(texture->pigment); - dmnsn_delete_refcount(texture->refcount); dmnsn_free(texture); } } -- cgit v1.2.3