Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/572
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jul 17, 2017
1 parent 3d5ac8c commit 45aeda5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coders/inline.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,10 @@ static MagickBooleanType WriteINLINEImage(const ImageInfo *image_info,
magick_info=GetMagickInfo(write_info->magick,exception);
if ((magick_info == (const MagickInfo *) NULL) ||
(GetMagickMimeType(magick_info) == (const char *) NULL))
ThrowWriterException(CorruptImageError,"ImageTypeNotSupported");
{
write_info=DestroyImageInfo(write_info);
ThrowWriterException(CorruptImageError,"ImageTypeNotSupported");
}
(void) CopyMagickString(image->filename,write_info->filename,MaxTextExtent);
blob_length=2048;
write_image=CloneImage(image,0,0,MagickTrue,exception);
Expand Down

0 comments on commit 45aeda5

Please sign in to comment.