[Kst] branches/work/kst/1.1/kst/kst

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


SVN commit 465722 by staikos:

don't crash while crashing


 M  +5 -3      kst.cpp  


--- branches/work/kst/1.1/kst/kst/kst.cpp #465721:465722
@@ -233,9 +233,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