Skip to content
Permalink
Browse files

https://github.com//issues/58

  • Loading branch information...
Cristy
Cristy committed Jul 18, 2017
1 parent 42ab1bc commit 816ecab6c532ae086ff4186b3eaf4aa7092d536f
Showing with 3 additions and 1 deletion.
  1. +3 −1 coders/png.c
@@ -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.

0 comments on commit 816ecab

Please sign in to comment.
You can’t perform that action at this time.