Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1616
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jun 23, 2019
1 parent e6654d8 commit 5982632
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wand/mogrify.c
Expand Up @@ -7923,6 +7923,8 @@ WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info,
channel,metric,&distortion,exception);
if (difference_image == (Image *) NULL)
break;
reconstruct_image=DestroyImage(reconstruct_image);
image=DestroyImage(image);
if (*images != (Image *) NULL)
*images=DestroyImageList(*images);
*images=difference_image;
Expand Down Expand Up @@ -8265,6 +8267,7 @@ WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info,
q=GetImageFromList(*images,index-1);
if (q == (Image *) NULL)
{
p=DestroyImage(p);
(void) ThrowMagickException(exception,GetMagickModule(),
OptionError,"NoSuchImage","`%s'",argv[i+1]);
status=MagickFalse;
Expand Down

0 comments on commit 5982632

Please sign in to comment.