aboutsummaryrefslogtreecommitdiff
path: root/src/diffraction-gpu.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-03-02 16:19:09 +0100
committerThomas White <taw@bitwiz.org.uk>2010-03-02 16:19:09 +0100
commit8579b1335d90170c64d685db17ac21af269c40f7 (patch)
tree1e794895e695f09ce827f9c7900f4a2064b368e4 /src/diffraction-gpu.c
parentac31e1424881a79d23edd3eef27b9adc4b5db528 (diff)
Clean up sinc LUTs
Diffstat (limited to 'src/diffraction-gpu.c')
-rw-r--r--src/diffraction-gpu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c
index c76531b8..29bfe3e8 100644
--- a/src/diffraction-gpu.c
+++ b/src/diffraction-gpu.c
@@ -459,6 +459,12 @@ void cleanup_gpu(struct gpu_context *gctx)
clReleaseMemObject(gctx->diff);
clReleaseMemObject(gctx->tt);
clReleaseMemObject(gctx->sfacs);
+ clReleaseMemObject(gctx->func_a);
+ clReleaseMemObject(gctx->func_b);
+ clReleaseMemObject(gctx->func_c);
+ free(gctx->func_a_ptr);
+ free(gctx->func_b_ptr);
+ free(gctx->func_c_ptr);
clReleaseCommandQueue(gctx->cq);
clReleaseContext(gctx->ctx);
free(gctx);