Commits

Anonymous committed be0fd1a

- #48, Race condition in gdImageStringFTEx
It is safe to destroy a unlocked mutex, not a locked one (Nuno Lopes)

Comments (0)

Files changed (1)

       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);
     }