cvs: php-src(PHP_4_4) /ext/gd/libgd gdft.c
| From: | Nuno Lopes | Date: | Thu, 01 Mar 2007 19:09:33 +0000 |
| Subject: | cvs: php-src(PHP_4_4) /ext/gd/libgd gdft.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43336@lists.php.net to get a copy of this message | ||
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);
}
}