]> granicus.if.org Git - php/commitdiff
merge from gd sources: unlock mutex before shuting it down
authorNuno Lopes <nlopess@php.net>
Thu, 1 Mar 2007 18:39:49 +0000 (18:39 +0000)
committerNuno Lopes <nlopess@php.net>
Thu, 1 Mar 2007 18:39:49 +0000 (18:39 +0000)
ext/gd/libgd/gdft.c

index 86dd8c3c771abc3c2b5314c89c8b81967a0abf09..499de8637b2d51036efaa1f073c6ce05312178d9 100644 (file)
@@ -721,6 +721,7 @@ void gdFontCacheShutdown()
                gdMutexLock(gdFontCacheMutex);
                gdCacheDelete(fontCache);
                fontCache = NULL;
+               gdMutexUnlock(gdFontCacheMutex);
                gdMutexShutdown(gdFontCacheMutex);
                FT_Done_FreeType(library);
        }