From 95895823f75108cbfed2697498e4e097f493b236 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 19 Oct 2009 00:49:29 +0000 Subject: Fix some memory leaks. dmnsn_delete_pigment() was not using the free_fn, and kD splay trees were not being deleted after raytracing finished. --- libdimension/pigments.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libdimension/pigments.c') diff --git a/libdimension/pigments.c b/libdimension/pigments.c index 22f75e8..adf44c4 100644 --- a/libdimension/pigments.c +++ b/libdimension/pigments.c @@ -40,6 +40,7 @@ dmnsn_new_solid_pigment(dmnsn_color color) *solid = color; pigment->pigment_fn = &dmnsn_solid_pigment_fn; + pigment->free_fn = &free; pigment->ptr = solid; } -- cgit v1.2.3