From: cristy Date: Sat, 14 Nov 2009 01:40:53 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~10382 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0aff6ea78e3086794abffff9d390fc7f8ca7324d;p=imagemagick --- diff --git a/wand/mogrify.c b/wand/mogrify.c index 997c853e6..649c60546 100644 --- a/wand/mogrify.c +++ b/wand/mogrify.c @@ -7686,7 +7686,8 @@ WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info, (void) HaldClutImageChannel(image,channel,hald_image); hald_image=DestroyImage(hald_image); InheritException(exception,&image->exception); - *images=DestroyImageList(*images); + if (*images != (Image *) NULL) + *images=DestroyImageList(*images); *images=image; break; } @@ -7716,7 +7717,8 @@ WandExport MagickBooleanType MogrifyImageList(ImageInfo *image_info, phase_image,*option == '-' ? MagickTrue : MagickFalse,exception); if (fourier_image == (Image *) NULL) break; - *images=DestroyImage(*images); + if (*images != (Image *) NULL) + *images=DestroyImage(*images); *images=fourier_image; break; }