diff -r fcece45ef507 -r 79de32ba3296 src/gui/text/qfont.cpp --- a/src/gui/text/qfont.cpp Mon May 03 13:17:34 2010 +0300 +++ b/src/gui/text/qfont.cpp Fri May 14 16:40:13 2010 +0300 @@ -2612,8 +2612,10 @@ } 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