src/gui/text/qfont.cpp
changeset 22 79de32ba3296
parent 18 2f34d5167611
child 23 89e065397ea6
--- 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