summaryrefslogtreecommitdiffstats
path: root/libdimension/pigments.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-19 00:49:29 +0000
committerTavian Barnes <tavianator@gmail.com>2009-10-19 00:49:29 +0000
commit95895823f75108cbfed2697498e4e097f493b236 (patch)
tree77efe89b445f168b7d0c63f3fd5f0a23f6e743e8 /libdimension/pigments.c
parent8710689500d3d35d04aabd727f12698590a816cb (diff)
downloaddimension-95895823f75108cbfed2697498e4e097f493b236.tar.xz
Fix some memory leaks.
dmnsn_delete_pigment() was not using the free_fn, and kD splay trees were not being deleted after raytracing finished.
Diffstat (limited to 'libdimension/pigments.c')
-rw-r--r--libdimension/pigments.c1
1 files changed, 1 insertions, 0 deletions
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;
}