Index: gdft.c =================================================================== RCS file: /repository/php-src/ext/gd/libgd/gdft.c,v retrieving revision 1.36.4.3 diff -u -u -p -r1.36.4.3 gdft.c --- gdft.c 21 Feb 2007 15:00:26 -0000 1.36.4.3 +++ gdft.c 22 Feb 2007 00:55:51 -0000 @@ -718,9 +718,10 @@ gdroundupdown (FT_F26Dot6 v1, int updown void gdFontCacheShutdown() { if (fontCache) { - gdMutexShutdown(gdFontCacheMutex); + gdMutexLock(gdFontCacheMutex); gdCacheDelete(fontCache); fontCache = NULL; + gdMutexShutdown(gdFontCacheMutex); FT_Done_FreeType(library); } }