Skip to content

Commit d555940

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/572
1 parent 73b6c35 commit d555940

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: coders/inline.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,10 @@ static MagickBooleanType WriteINLINEImage(const ImageInfo *image_info,
316316
magick_info=GetMagickInfo(write_info->magick,exception);
317317
if ((magick_info == (const MagickInfo *) NULL) ||
318318
(GetMagickMimeType(magick_info) == (const char *) NULL))
319-
ThrowWriterException(CorruptImageError,"ImageTypeNotSupported");
319+
{
320+
write_info=DestroyImageInfo(write_info);
321+
ThrowWriterException(CorruptImageError,"ImageTypeNotSupported");
322+
}
320323
(void) CopyMagickString(image->filename,write_info->filename,
321324
MagickPathExtent);
322325
blob_length=2048;

0 commit comments

Comments
 (0)