From: anthony Date: Wed, 23 Mar 2011 12:37:06 +0000 (+0000) Subject: bad fix -- added correct fix X-Git-Tag: 7.0.1-0~7906 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d86e178a3e8a40369d4c3b357563c303611e861;p=imagemagick bad fix -- added correct fix --- diff --git a/magick/fx.c b/magick/fx.c index 8a5f8dd7c..b729e8506 100644 --- a/magick/fx.c +++ b/magick/fx.c @@ -168,7 +168,7 @@ MagickExport FxInfo *AcquireFxInfo(const Image *image,const char *expression) ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed"); (void) ResetMagickMemory(fx_info,0,sizeof(*fx_info)); fx_info->exception=AcquireExceptionInfo(); - fx_info->images=GetFirstImageInList(image); + fx_info->images=image; fx_info->colors=NewSplayTree(CompareSplayTreeString,RelinquishMagickMemory, RelinquishMagickMemory); fx_info->symbols=NewSplayTree(CompareSplayTreeString,RelinquishMagickMemory, @@ -178,7 +178,8 @@ MagickExport FxInfo *AcquireFxInfo(const Image *image,const char *expression) if (fx_info->resample_filter == (ResampleFilter **) NULL) ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed"); i=0; - for (next=fx_info->images; next != (Image *) NULL; next=next->next) + for (next=GetFirstImageInList(fx_info->images); + next != (Image *) NULL; next=next->next) { fx_info->resample_filter[i]=AcquireResampleFilter(next,fx_info->exception); SetResampleFilter(fx_info->resample_filter[i],PointFilter,1.0);