summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfont.cpp
diff options
context:
space:
mode:
authorJanne Koskinen <janne.p.koskinen@digia.com>2010-04-08 13:07:27 +0300
committerJanne Koskinen <janne.p.koskinen@digia.com>2010-04-08 13:07:27 +0300
commit4c425feb08cd4aad31a99e92fec3fbbde0349d95 (patch)
tree1eaea4a45bef214367b8cded00a58cda728787f2 /src/gui/text/qfont.cpp
parent50ee99bc155e45bb06bffb849a73ff0c3f81c9a9 (diff)
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/qfont.cpp')
-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 9b85c0410b..c221e55dda 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