From: cristy Date: Mon, 10 Mar 2014 13:19:17 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2595 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=931c80601c54c78a2c58904695d837ed9b790f7d;p=imagemagick --- diff --git a/MagickCore/accelerate.c b/MagickCore/accelerate.c index f92781318..8617a0860 100644 --- a/MagickCore/accelerate.c +++ b/MagickCore/accelerate.c @@ -4500,7 +4500,7 @@ MagickExport MagickBooleanType ComputeContrastStretchImageChannel(Image *image, */ histogram=(cl_uint4 *) AcquireQuantumMemory(MaxMap+1UL, sizeof(*histogram)); - if ((histogram == (cl_uint4 *) NULL)) + if (histogram == (cl_uint4 *) NULL) ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", image->filename); /* reset histogram */ @@ -4723,7 +4723,7 @@ MagickExport MagickBooleanType ComputeContrastStretchImageChannel(Image *image, stretch_map=(PixelPacket *) AcquireQuantumMemory(MaxMap+1UL, sizeof(*stretch_map)); - if ((stretch_map == (PixelPacket *) NULL)) + if (stretch_map == (PixelPacket *) NULL) ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed", image->filename);