From fa887fb28a0c95dec751b1f7e0c48090ffbfd7ec Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 6 May 2019 08:50:03 -0400 Subject: [PATCH] ... --- MagickCore/cache.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 2585dbf59..7ed75727f 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -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 -- 2.40.0