aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction-gpu.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-11-14 21:22:00 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:05 +0100
commit0fd8bf4b0fd4aa40cfffa9cfe0b8f7d9746c57b4 (patch)
treea9f5c969bfb5e0a05e9fbee6dbc86b22384e5d03 /src/diffraction-gpu.c
parent38f7657477e16117655db03b05e3da6a126009d8 (diff)
pattern_sim: Fix memory leaks
Diffstat (limited to 'src/diffraction-gpu.c')
-rw-r--r--src/diffraction-gpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c
index c76c4aa0..bbed9a9b 100644
--- a/src/diffraction-gpu.c
+++ b/src/diffraction-gpu.c
@@ -474,6 +474,9 @@ void cleanup_gpu(struct gpu_context *gctx)
}
}
+ free(gctx->sinc_luts);
+ free(gctx->sinc_lut_ptrs);
+
clReleaseCommandQueue(gctx->cq);
clReleaseContext(gctx->ctx);
free(gctx);