We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73b6c35 commit d555940Copy full SHA for d555940
coders/inline.c
@@ -316,7 +316,10 @@ static MagickBooleanType WriteINLINEImage(const ImageInfo *image_info,
316
magick_info=GetMagickInfo(write_info->magick,exception);
317
if ((magick_info == (const MagickInfo *) NULL) ||
318
(GetMagickMimeType(magick_info) == (const char *) NULL))
319
- ThrowWriterException(CorruptImageError,"ImageTypeNotSupported");
+ {
320
+ write_info=DestroyImageInfo(write_info);
321
+ ThrowWriterException(CorruptImageError,"ImageTypeNotSupported");
322
+ }
323
(void) CopyMagickString(image->filename,write_info->filename,
324
MagickPathExtent);
325
blob_length=2048;
0 commit comments