[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Fri Sep 30 18:12:12 CEST 2005


SVN commit 465723 by staikos:

don't crash while crashing


 M  +5 -3      kst.cpp  


--- trunk/extragear/graphics/kst/kst/kst.cpp #465722:465723
@@ -251,9 +251,11 @@
 
 
 KstApp::~KstApp() {
-  _updateThread->setFinished(true);
-  if (!_updateThread->wait(3000)) { // 3s
-    _updateThread->terminate();
+  if (_updateThread) {
+    _updateThread->setFinished(true);
+    if (!_updateThread->wait(3000)) { // 3s
+      _updateThread->terminate();
+    }
   }
 
   KstDataSource::cleanupForExit(); // must be before deletions


More information about the Kst mailing list