cvs: gd /libgd gdft.c
| From: | Pierre-Alain Joye | Date: | Mon, 26 Feb 2007 19:59:44 +0000 |
| Subject: | cvs: gd /libgd gdft.c | ||
| Groups: | php.gd.cvs | ||
| Request: | Send a blank email to php-gd-cvs+get-128@lists.php.net to get a copy of this message | ||
pajoye Mon Feb 26 19:59:44 2007 UTC
Modified files:
/gd/libgd gdft.c
Log:
- #48, Race condition in gdImageStringFTEx
It is safe to destroy a unlocked mutex, not a locked one (Nuno Lopes)
http://cvs.php.net/viewvc.cgi/gd/libgd/gdft.c?r1=1.31&r2=1.32&diff_format=u
Index: gd/libgd/gdft.c
diff -u gd/libgd/gdft.c:1.31 gd/libgd/gdft.c:1.32
--- gd/libgd/gdft.c:1.31 Mon Feb 26 19:30:57 2007
+++ gd/libgd/gdft.c Mon Feb 26 19:59:44 2007
@@ -800,6 +800,7 @@
gdCacheDelete (fontCache);
/* 2.0.16: Gustavo Scotti: make sure we don't free this twice */
fontCache = 0;
+ gdMutexUnlock(gdFontCacheMutex);
gdMutexShutdown (gdFontCacheMutex);
FT_Done_FreeType (library);
}