r20846 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 31 13:42:54 UTC 2016


Author: jghali
Date: Sun Jan 31 13:42:54 2016
New Revision: 20846

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20846
Log:
fix potential FT_Face leak when scanning fonts

Modified:
    trunk/Scribus/scribus/scfonts.cpp

Modified: trunk/Scribus/scribus/scfonts.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20846&path=/trunk/Scribus/scribus/scfonts.cpp
==============================================================================
--- trunk/Scribus/scribus/scfonts.cpp	(original)
+++ trunk/Scribus/scribus/scfonts.cpp	Sun Jan 31 13:42:54 2016
@@ -515,6 +515,8 @@
 			if (!checkedFonts[filename].isOK)
 			{
 				checkedFonts[filename].isChecked = true;
+				if (face != NULL)
+					FT_Done_Face( face );
 				return true;
 			}
 			if (checkedFonts[filename].lastMod != foCache.lastMod)




More information about the scribus-commit mailing list