]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 28 Oct 2012 20:10:06 +0000 (20:10 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 28 Oct 2012 20:10:06 +0000 (20:10 +0000)
MagickCore/cache.c

index babadf01f8986622e1dbce863c8d5c992b41cc35..b6372854b42c37a9f2fa4df10bbc8027305976ec 100644 (file)
@@ -1940,6 +1940,14 @@ 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=AcquirePixelCacheNexus(
+                        cache_info->number_threads);
+                      if (cache_info->nexus_info == (NexusInfo **) NULL)
+                        ThrowFatalException(ResourceLimitFatalError,
+                          "MemoryAllocationFailed");
+                    }
                   destroy=MagickTrue;
                   image->cache=clone_image.cache;
                 }