Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/587
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jul 18, 2017
1 parent 816ecab commit a6802e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/mat.c
Expand Up @@ -1350,6 +1350,8 @@ RestoreMSCWarning
clone_info = NULL;
}
if (logging) (void)LogMagickEvent(CoderEvent,GetMagickModule(),"return");
if ((image != image2) && (image2 != (Image *) NULL))
image2=DestroyImage(image2);
if(image==NULL)
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
return (image);
Expand Down

0 comments on commit a6802e2

Please sign in to comment.