We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6654d8 commit 5982632Copy full SHA for 5982632
wand/mogrify.c
@@ -7923,6 +7923,8 @@ WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info,
7923
channel,metric,&distortion,exception);
7924
if (difference_image == (Image *) NULL)
7925
break;
7926
+ reconstruct_image=DestroyImage(reconstruct_image);
7927
+ image=DestroyImage(image);
7928
if (*images != (Image *) NULL)
7929
*images=DestroyImageList(*images);
7930
*images=difference_image;
@@ -8265,6 +8267,7 @@ WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info,
8265
8267
q=GetImageFromList(*images,index-1);
8266
8268
if (q == (Image *) NULL)
8269
{
8270
+ p=DestroyImage(p);
8271
(void) ThrowMagickException(exception,GetMagickModule(),
8272
OptionError,"NoSuchImage","`%s'",argv[i+1]);
8273
status=MagickFalse;
0 commit comments