aboutsummaryrefslogtreecommitdiff
path: root/src/reflections.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-21 17:13:18 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-21 17:13:18 +0000
commitf1f7e3243ed291fa9276585f58f957c3f28d5212 (patch)
treed4be61936ff7b50e805f92834392d22bcdefd1f0 /src/reflections.c
parent25ccc1413dca19717009ced22a643df3223e1a42 (diff)
Stuff
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@70 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/reflections.c')
-rw-r--r--src/reflections.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/reflections.c b/src/reflections.c
index c1b557e..03d901b 100644
--- a/src/reflections.c
+++ b/src/reflections.c
@@ -53,6 +53,12 @@ void reflection_clear(ReflectionContext *reflectionctx) {
}
+void reflection_free(ReflectionContext *reflectionctx) {
+ reflection_clear(reflectionctx);
+ free(reflectionctx->reflections);
+ free(reflectionctx);
+}
+
void reflection_add(ReflectionContext *reflectionctx, double x, double y, double z, double intensity, ReflectionType type) {
Reflection *new_reflection;