From 10e530d932f2ec7c52dbeb7bce6a116a1ab0d50b Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 19 Mar 2014 13:39:13 +0000 Subject: [PATCH] --- MagickCore/delegate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MagickCore/delegate.c b/MagickCore/delegate.c index 0df9dd579..eda0971d3 100644 --- a/MagickCore/delegate.c +++ b/MagickCore/delegate.c @@ -759,8 +759,8 @@ MagickExport MagickBooleanType GetDelegateThreadSupport( % % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % -% IsDelegateCacheInstantiated() determines if the delegate list is instantiated. -% If not, it instantiates the list and returns it. +% IsDelegateCacheInstantiated() determines if the delegate cache is +% instantiated. If not, it instantiates the cache and returns it. % % The format of the IsDelegateInstantiated method is: % @@ -1389,6 +1389,8 @@ static MagickBooleanType LoadDelegateCache(LinkedListInfo *delegate_cache, continue; if (LocaleCompare(keyword,"/>") == 0) { + if (delegate_info->thread_support == MagickFalse) + delegate_info->semaphore=AcquireSemaphoreInfo(); status=AppendValueToLinkedList(delegate_cache,delegate_info); if( IfMagickFalse(status) ) (void) ThrowMagickException(exception,GetMagickModule(), @@ -1492,8 +1494,6 @@ static MagickBooleanType LoadDelegateCache(LinkedListInfo *delegate_cache, if (LocaleCompare((char *) keyword,"thread-support") == 0) { delegate_info->thread_support=IsStringTrue(token); - if (delegate_info->thread_support != MagickFalse) - delegate_info->semaphore=AcquireSemaphoreInfo(); break; } break; -- 2.50.1