aboutsummaryrefslogtreecommitdiff
path: root/tests/test_kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_kernel.cpp')
-rw-r--r--tests/test_kernel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_kernel.cpp b/tests/test_kernel.cpp
index 7046279..6c61ed2 100644
--- a/tests/test_kernel.cpp
+++ b/tests/test_kernel.cpp
@@ -123,7 +123,7 @@ START_TEST (test_compiled_kernel)
"unable to create a valid kernel"
);
- clReleaseKernel(kernels[0]); // Just born and already killed...
+ clReleaseKernel(kernels[1]); // Just born and already killed...
result = clCreateKernelsInProgram(program, 0, 0, &num_kernels);
fail_if(
@@ -183,9 +183,11 @@ START_TEST (test_compiled_kernel)
"the kernel hasn't done its job, the buffer is wrong"
);
+ clReleaseEvent(event);
clReleaseKernel(kernels[0]);
clReleaseKernel(kernels[1]);
clReleaseProgram(program);
+ clReleaseCommandQueue(queue);
clReleaseContext(ctx);
}
END_TEST