From: Cristy Date: Sat, 16 Sep 2017 12:55:35 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-3~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e89cb2a3193dea5a1ea482721fec669f9da7968;p=imagemagick ... --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 807e21237..9349d15fd 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -150,9 +150,6 @@ static void /* Global declarations. */ -static volatile MagickBooleanType - instantiate_cache = MagickFalse; - static SemaphoreInfo *cache_semaphore = (SemaphoreInfo *) NULL; @@ -373,9 +370,7 @@ MagickPrivate void CacheComponentTerminus(void) { if (cache_semaphore == (SemaphoreInfo *) NULL) ActivateSemaphoreInfo(&cache_semaphore); - LockSemaphoreInfo(cache_semaphore); - instantiate_cache=MagickFalse; - UnlockSemaphoreInfo(cache_semaphore); + /* no op-- nothing to destroy */ RelinquishSemaphoreInfo(&cache_semaphore); }