Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fixed incorrect call to DestroyImage reported in #491.
  • Loading branch information
dlemstra committed May 15, 2017
1 parent 72f5c86 commit 0184336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magick/image.c
Expand Up @@ -833,7 +833,7 @@ MagickExport Image *CloneImage(const Image *image,const size_t columns,
sizeof(*clone_image->colormap));
if (clone_image->colormap == (PixelPacket *) NULL)
{
clone_image=DestroyImage(clone_image);
image=(Image *) RelinquishMagickMemory(image);
ThrowImageException(ResourceLimitError,"MemoryAllocationFailed");
}
(void) CopyMagickMemory(clone_image->colormap,image->colormap,length*
Expand Down

0 comments on commit 0184336

Please sign in to comment.