r20847 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 31 13:43:36 UTC 2016


Author: jghali
Date: Sun Jan 31 13:43:35 2016
New Revision: 20847

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

Modified:
    branches/Version14x/Scribus/scribus/scfonts.cpp

Modified: branches/Version14x/Scribus/scribus/scfonts.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20847&path=/branches/Version14x/Scribus/scribus/scfonts.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scfonts.cpp	(original)
+++ branches/Version14x/Scribus/scribus/scfonts.cpp	Sun Jan 31 13:43:35 2016
@@ -381,6 +381,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