]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 6 May 2019 12:50:03 +0000 (08:50 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 6 May 2019 12:54:03 +0000 (08:54 -0400)
MagickCore/cache.c

index 2585dbf59df9c2bece22649dbffd9cd3e74d7d4e..7ed75727fe46dc196d40510b7b857708ad192f8e 100644 (file)
@@ -702,8 +702,8 @@ static MagickBooleanType ClonePixelCacheRepository(
   /*
     Mismatched pixel cache morphology.
   */
-  cache_nexus=AcquirePixelCacheNexus(MaxCacheThreads);
-  clone_nexus=AcquirePixelCacheNexus(MaxCacheThreads);
+  cache_nexus=AcquirePixelCacheNexus(cache_info->number_threads);
+  clone_nexus=AcquirePixelCacheNexus(cache_info->number_threads);
   length=cache_info->number_channels*sizeof(*cache_info->channel_map);
   optimize=(cache_info->number_channels == clone_info->number_channels) &&
     (memcmp(cache_info->channel_map,clone_info->channel_map,length) == 0) ?
@@ -826,8 +826,8 @@ static MagickBooleanType ClonePixelCacheRepository(
         status=WritePixelCacheMetacontent(clone_info,clone_nexus[id],exception);
       }
     }
-  cache_nexus=DestroyPixelCacheNexus(cache_nexus,MaxCacheThreads);
-  clone_nexus=DestroyPixelCacheNexus(clone_nexus,MaxCacheThreads);
+  cache_nexus=DestroyPixelCacheNexus(cache_nexus,cache_info->number_threads);
+  clone_nexus=DestroyPixelCacheNexus(clone_nexus,cache_info->number_threads);
   if (cache_info->debug != MagickFalse)
     {
       char