qt5base-lts/tests/auto/gui/text
Konstantin Ritt 36cb3f3f65 Fix the font engines leaking
1. when there were some engines with ref > 1 in the cache, prior to calling
   QFontDatabase::{add,remove}ApplicationFont()/removeAllApplicationFonts()
   (QFontCache::clear() has never decreased engine's cache_count);
2. when the QFontEngineData's engine is not in cache i.e. the Box or Test font engine
   (~QFontEngineData() didn't free engines it keeps).

Instead of using the font engine's (external) "cache_count" counter,
QFontCache now references a given font engine every time it is inserted to
the cache and dereferences exactly that number of times in clear().

Change-Id: I87677ebd24c1f4a81a53526f2e726e596b043c61
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-03-20 07:02:29 +01:00
..
qabstracttextdocumentlayout Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qcssparser Fix minor typos in docs, printed messages & comments 2013-01-28 18:12:41 +01:00
qfont Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfontcache Fix the font engines leaking 2013-03-20 07:02:29 +01:00
qfontdatabase Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qfontmetrics Merge remote-tracking branch 'origin/stable' into dev 2013-01-28 11:10:29 +01:00
qglyphrun Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qrawfont Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstatictext Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qsyntaxhighlighter Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qtextblock Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtextcursor Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtextdocument Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtextdocumentfragment Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtextdocumentlayout Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtextformat Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qtextlayout Hide Harfbuzz from the outer world 2013-03-13 14:46:26 +01:00
qtextlist Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtextobject Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtextodfwriter Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtextpiecetable Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qtextscriptengine Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qtexttable Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qzip Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
text.pro Fix the font engines leaking 2013-03-20 07:02:29 +01:00