diff options
-rw-r--r-- | src/diffraction-gpu.c | 6 |
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); |