[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Fri Jul 16 00:03:00 CEST 2004


CVS commit by arwalker: 

Correctly fix the circular reference counts.


  M +7 -2      kstviewwindow.cpp   1.29


--- kdeextragear-2/kst/kst/kstviewwindow.cpp  #1.28:1.29
@@ -125,6 +125,11 @@ void KstViewWindow::updateActions() {
 
 KstViewWindow::~KstViewWindow() {
-  KstApp::inst()->updateDialogsForWindow();
-  _view->release(); // bye bye - remove circular dependency and disappear
+  KstApp* pApp = KstApp::inst();
+
+  _view->clearChildren();
+
+  if (pApp) {
+    pApp->updateDialogsForWindow();
+  }
 }
 





More information about the Kst mailing list