Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1528
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 26, 2019
1 parent a40fff3 commit ba21957
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coders/dot.c
Expand Up @@ -129,7 +129,10 @@ static Image *ReadDOTImage(const ImageInfo *image_info,ExceptionInfo *exception)
image=AcquireImage(image_info,exception);
status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception);
if (status == MagickFalse)
return((Image *) NULL);
{
image=DestroyImageList(image);
return((Image *) NULL);
}
read_info=CloneImageInfo(image_info);
SetImageInfoBlob(read_info,(void *) NULL,0);
(void) CopyMagickString(read_info->magick,"SVG",MagickPathExtent);
Expand Down

0 comments on commit ba21957

Please sign in to comment.