diff --git a/driver-opencl.c b/driver-opencl.c index d9d9837f..5d622ccf 100644 --- a/driver-opencl.c +++ b/driver-opencl.c @@ -1570,9 +1570,9 @@ static void opencl_thread_shutdown(struct thr_info *thr) const int thr_id = thr->id; _clState *clState = clStates[thr_id]; - clReleaseCommandQueue(clState->commandQueue); clReleaseKernel(clState->kernel); clReleaseProgram(clState->program); + clReleaseCommandQueue(clState->commandQueue); clReleaseContext(clState->context); }