diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2011-09-09 12:31:39 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2011-09-16 11:01:24 (GMT) |
commit | 8935a84e18804c7ff4b7336e3cfdf1cd558eaf1c (patch) | |
tree | ebed5bf2916a99a976c5f42c9de41cc5d435fa7c /src/gui/text/qtextlayout.cpp | |
parent | 9463ba63bc7e41a1d6aa320aced392843e31b160 (diff) | |
download | Qt-8935a84e18804c7ff4b7336e3cfdf1cd558eaf1c.zip Qt-8935a84e18804c7ff4b7336e3cfdf1cd558eaf1c.tar.gz Qt-8935a84e18804c7ff4b7336e3cfdf1cd558eaf1c.tar.bz2 |
Release font engine refcount when done using it in QTextEngine
5f2b6dd2a50275bc05ae5d7e9dd8902d6d49d9df increased refcounts for
font engines in QTextEngine cache, we need to decrease them when
the QTextEngine is deallocated.
Task-number: QTBUG-21222
Reviewed-by: Eskil
Diffstat (limited to 'src/gui/text/qtextlayout.cpp')
-rw-r--r-- | src/gui/text/qtextlayout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/text/qtextlayout.cpp b/src/gui/text/qtextlayout.cpp index c92e15b..d0c1a0e 100644 --- a/src/gui/text/qtextlayout.cpp +++ b/src/gui/text/qtextlayout.cpp @@ -375,7 +375,7 @@ QTextLayout::~QTextLayout() void QTextLayout::setFont(const QFont &font) { d->fnt = font; - d->feCache.reset(); + d->resetFontEngineCache(); } /*! @@ -515,7 +515,7 @@ void QTextLayout::setAdditionalFormats(const QList<FormatRange> &formatList) } if (d->block.docHandle()) d->block.docHandle()->documentChange(d->block.position(), d->block.length()); - d->feCache.reset(); + d->resetFontEngineCache(); } /*! |