&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;
q=GetImageFromList(*images,index-1);
if (q == (Image *) NULL)
{
+ p=DestroyImage(p);
(void) ThrowMagickException(exception,GetMagickModule(),
OptionError,"NoSuchImage","`%s'",argv[i+1]);
status=MagickFalse;
{
index_image=GetImageFromList(_images,index-1);
if (index_image == (Image *) NULL)
- CLIWandExceptArgBreak(OptionError,"NoSuchImage",option,arg1);
+ {
+ insert_image=DestroyImage(insert_image);
+ CLIWandExceptArgBreak(OptionError,"NoSuchImage",option,arg1);
+ }
InsertImageInList(&index_image,insert_image);
}
_images=GetFirstImageInList(index_image);