}
kernelBufferPtr=(float *)AcquireMagickMemory(kernel->width*
sizeof(*kernelBufferPtr));
+ if (kernelBufferPtr == (float *) NULL)
+ {
+ kernel=DestroyKernelInfo(kernel);
+ (void) OpenCLThrowMagickException(device,exception,GetMagickModule(),
+ ResourceLimitWarning,"MemoryAllocationFailed.",".");
+ return((cl_mem) NULL);
+ }
for (i = 0; i < (ssize_t) kernel->width; i++)
kernelBufferPtr[i] = (float)kernel->values[i];
imageKernelBuffer=CreateOpenCLBuffer(device,CL_MEM_COPY_HOST_PTR |
Clone persistent pixel cache.
*/
clone_info=(CacheInfo *) ClonePixelCache(cache_info);
+ if (clone_info == (CacheInfo *) NULL)
+ return(MagickFalse);
clone_info->type=DiskCache;
(void) CopyMagickString(clone_info->cache_filename,filename,MagickPathExtent);
clone_info->file=(-1);
if (resource_info->copy_image == (Image *) NULL)
return(MagickFalse);
paste_image=CloneImage(resource_info->copy_image,0,0,MagickTrue,exception);
+ if (paste_image == (Image *) NULL)
+ return(MagickFalse);
/*
Map Command widget.
*/
Copy this tile to the composite.
*/
image=CloneImage(image_list[tile],0,0,MagickTrue,exception);
+ if (image == (Image *) NULL)
+ ThrowImageException(ResourceLimitError,"MemoryAllocationFailed");
progress_monitor=SetImageProgressMonitor(image,
(MagickProgressMonitor) NULL,image->client_data);
width=concatenate != MagickFalse ? image->columns : extract_info.width;