diff options
author | Janne Koskinen <janne.p.koskinen@digia.com> | 2010-04-08 10:07:27 (GMT) |
---|---|---|
committer | Janne Koskinen <janne.p.koskinen@digia.com> | 2010-04-08 10:07:27 (GMT) |
commit | 4c425feb08cd4aad31a99e92fec3fbbde0349d95 (patch) | |
tree | 1eaea4a45bef214367b8cded00a58cda728787f2 /src | |
parent | 50ee99bc155e45bb06bffb849a73ff0c3f81c9a9 (diff) | |
download | Qt-4c425feb08cd4aad31a99e92fec3fbbde0349d95.zip Qt-4c425feb08cd4aad31a99e92fec3fbbde0349d95.tar.gz Qt-4c425feb08cd4aad31a99e92fec3fbbde0349d95.tar.bz2 |
Clear QFontCache TLS content before nullifying TLS pointer.
If not cleared server handles are left open causing
Font Server to Panic with KErrInUse in Symbian.
Task-number: QTBUG-9565
Reviewed-by: Simon Hausmann
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/text/qfont.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/text/qfont.cpp b/src/gui/text/qfont.cpp index 9b85c04..c221e55 100644 --- a/src/gui/text/qfont.cpp +++ b/src/gui/text/qfont.cpp @@ -2612,8 +2612,10 @@ void QFontCache::cleanup() } QT_CATCH (const std::bad_alloc &) { // no cache - just ignore } - if (cache && cache->hasLocalData()) + if (cache && cache->hasLocalData()) { + cache->localData()->clear(); cache->setLocalData(0); + } } #endif // QT_NO_THREAD |