summaryrefslogtreecommitdiffstats
path: root/src/gui/text
diff options
context:
space:
mode:
authorJanne Koskinen <janne.p.koskinen@digia.com>2010-04-08 10:07:27 (GMT)
committerJanne Koskinen <janne.p.koskinen@digia.com>2010-04-08 10:07:27 (GMT)
commit4c425feb08cd4aad31a99e92fec3fbbde0349d95 (patch)
tree1eaea4a45bef214367b8cded00a58cda728787f2 /src/gui/text
parent50ee99bc155e45bb06bffb849a73ff0c3f81c9a9 (diff)
downloadQt-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/gui/text')
-rw-r--r--src/gui/text/qfont.cpp4
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