summaryrefslogtreecommitdiffstats
path: root/libdimension/sky_sphere.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-23 13:05:41 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-23 13:05:41 -0500
commitb49cf79b57af160ba190fea76d7143cce3428985 (patch)
tree1dfa1a02e1fab33f06cf5dd6dbb896a5296197e6 /libdimension/sky_sphere.c
parentf77a53bf817920bfa94c2a6d83d5e7066b157134 (diff)
downloaddimension-b49cf79b57af160ba190fea76d7143cce3428985.tar.xz
Fix leak in dmnsn_delete_sky_sphere().
Diffstat (limited to 'libdimension/sky_sphere.c')
-rw-r--r--libdimension/sky_sphere.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdimension/sky_sphere.c b/libdimension/sky_sphere.c
index 2223b10..9e5b9a9 100644
--- a/libdimension/sky_sphere.c
+++ b/libdimension/sky_sphere.c
@@ -41,6 +41,7 @@ dmnsn_delete_sky_sphere(dmnsn_sky_sphere *sky_sphere)
DMNSN_ARRAY_FOREACH (dmnsn_pigment **, pigment, sky_sphere->pigments) {
dmnsn_delete_pigment(*pigment);
}
+ dmnsn_delete_array(sky_sphere->pigments);
dmnsn_free(sky_sphere);
}
}