Skip to content
Permalink
Browse files Browse the repository at this point in the history
https://github.com/ImageMagick/ImageMagick/issues/58
  • Loading branch information
Cristy committed Jul 18, 2017
1 parent 42ab1bc commit 816ecab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coders/png.c
Expand Up @@ -8270,9 +8270,11 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,
" Enter WriteOnePNGImage()");

image = CloneImage(IMimage,0,0,MagickFalse,exception);
if (image == (Image *) NULL)
return(MagickFalse);
image_info=(ImageInfo *) CloneImageInfo(IMimage_info);
if (image_info == (ImageInfo *) NULL)
ThrowWriterException(ResourceLimitError, "MemoryAllocationFailed");
ThrowWriterException(ResourceLimitError, "MemoryAllocationFailed");

/* Define these outside of the following "if logging()" block so they will
* show in debuggers.
Expand Down

0 comments on commit 816ecab

Please sign in to comment.