cvs: gd /libgd gdft.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1172519984@cvsserver>
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);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.