cvs: gd(GD_2_0) /libgd gdft.c
[email protected] ("Pierre-Alain Joye")
| Newsgroups | php.gd.cvs |
|---|---|
| Message-ID | <cvspajoye1172519922@cvsserver> |
pajoye Mon Feb 26 19:58:42 2007 UTC
Modified files: (Branch: GD_2_0)
/gd/libgd gdft.c
Log:
- #48, Race condition in gdImageStringFTEx
it is safe to destroy an unlocked mutex, not a locked one (Nuno Lopes)
http://cvs.php.net/viewvc.cgi/gd/libgd/gdft.c?r1=1.28.2.3&r2=1.28.2.4&diff_format=u
Index: gd/libgd/gdft.c
diff -u gd/libgd/gdft.c:1.28.2.3 gd/libgd/gdft.c:1.28.2.4
--- gd/libgd/gdft.c:1.28.2.3 Mon Feb 26 19:30:42 2007
+++ gd/libgd/gdft.c Mon Feb 26 19:58:42 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);
}