aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-02-19 15:12:27 +0100
committerThomas White <taw@physics.org>2010-02-19 15:12:27 +0100
commit19c8bd5d735e2eab28e92b1bb3b3c914ade7621e (patch)
treed33f9c15426b3716aae09e001335307fddbae0cf /src
parent4ecbf9d41ece5e412e3fada32a3998775ffd9676 (diff)
Release memory objects
Diffstat (limited to 'src')
-rw-r--r--src/diffraction-gpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/diffraction-gpu.c b/src/diffraction-gpu.c
index dbf5c1aa..b32be8c0 100644
--- a/src/diffraction-gpu.c
+++ b/src/diffraction-gpu.c
@@ -387,6 +387,8 @@ void get_diffraction_gpu(struct image *image, int na, int nb, int nc,
}
clReleaseProgram(prog);
+ clReleaseMemObject(diff);
+ clReleaseMemObject(tt);
clReleaseMemObject(sfacs);
clReleaseCommandQueue(cq);
clReleaseContext(ctx);