From 0aff6ea78e3086794abffff9d390fc7f8ca7324d Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 14 Nov 2009 01:40:53 +0000 Subject: [PATCH] --- wand/mogrify.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.50.1