nlopess Thu Mar 1 19:09:33 2007 UTC
Modified files: (Branch: PHP_4_4)
/php-src/ext/gd/libgd gdft.c
Log:
MFH
#Pierre: I think this code still needs more patching..
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gdft.c?r1=1.11.2.19.2.2&r2=1.11.2.19.2.3&diff_format=u
Index: php-src/ext/gd/libgd/gdft.c
diff -u php-src/ext/gd/libgd/gdft.c:1.11.2.19.2.2
php-src/ext/gd/libgd/gdft.c:1.11.2.19.2.3
--- php-src/ext/gd/libgd/gdft.c:1.11.2.19.2.2 Wed Feb 28 18:20:56 2007
+++ php-src/ext/gd/libgd/gdft.c Thu Mar 1 19:09:33 2007
@@ -772,10 +772,12 @@
void gdFontCacheShutdown()
{
if (fontCache) {
- gdMutexShutdown(gdFontCacheMutex);
- gdCacheDelete(fontCache);
+ gdMutexLock(gdFontCacheMutex);
+ gdCacheDelete(fontCache);
fontCache = NULL;
- FT_Done_FreeType(library);
+ gdMutexUnlock(gdFontCacheMutex);
+ gdMutexShutdown(gdFontCacheMutex);
+ FT_Done_FreeType(library);
}
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php