From: dirk Date: Fri, 22 Apr 2016 16:13:30 +0000 (+0200) Subject: Fixed incorrect check. X-Git-Tag: 7.0.1-0~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a93d38cfeb5469f22a8f51e20897af27406fa61;p=imagemagick Fixed incorrect check. --- diff --git a/MagickCore/opencl.c b/MagickCore/opencl.c index 6f5c2624d..f7e8ba930 100644 --- a/MagickCore/opencl.c +++ b/MagickCore/opencl.c @@ -2511,7 +2511,7 @@ MagickPrivate void RelinquishOpenCLCommandQueue(MagickCLDevice device, assert(device != (MagickCLDevice) NULL); LockSemaphoreInfo(device->lock); device->created_queues--; - if ((device->profile_kernels == MagickFalse) || + if ((device->profile_kernels != MagickFalse) || (device->command_queues_index >= MAGICKCORE_OPENCL_COMMAND_QUEUES-1)) (void) openCL_library->clReleaseCommandQueue(queue); else