qt5base-lts/tests/auto/gui
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
..
image Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
itemmodels Fix warning about tautological comparison in tst_qstandarditem (CLANG). 2013-03-06 21:50:28 +01:00
kernel Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
math3d Add convenience distance methods to QVector2D 2013-03-18 08:36:03 +01:00
painting Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00
qopengl Added QOffscreenSurface class. 2013-02-18 13:42:22 +01:00
text Fix the font engines leaking 2013-03-20 07:02:29 +01:00
util Merge remote-tracking branch 'origin/stable' into dev 2013-01-22 18:40:13 +01:00
gui.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00