From: cristy Date: Mon, 8 Aug 2011 00:04:15 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~7206 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=979bf7781cfcde33612013cd09a2e5cd048b6509;p=imagemagick --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 368d228cc..c088e4403 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -2060,6 +2060,8 @@ static Cache GetImagePixelCache(Image *image,const MagickBooleanType clone, status=ClonePixelCachePixels(clone_info,cache_info,exception); if (status != MagickFalse) { + if (cache_info->mode == ReadMode) + cache_info->nexus_info=(NexusInfo **) NULL; destroy=MagickTrue; image->cache=clone_image.cache; }