diff main/MainWindow.cpp @ 573:0b094b0fdcc4

Clean up more tidily on exit
author Chris Cannam
date Thu, 16 May 2013 14:05:21 +0100
parents e5e6625deb85
children e8881f405b8f ba338234c001
line wrap: on
line diff
--- a/main/MainWindow.cpp	Wed May 15 22:15:58 2013 +0100
+++ b/main/MainWindow.cpp	Thu May 16 14:05:21 2013 +0100
@@ -306,9 +306,9 @@
     
     TransformFactory::getInstance()->startPopulationThread();
 
-    VersionTester *vt = new VersionTester
+    m_versionTester = new VersionTester
         ("sonicvisualiser.org", "/latest-version.txt", SV_VERSION);
-    connect(vt, SIGNAL(newerVersionAvailable(QString)),
+    connect(m_versionTester, SIGNAL(newerVersionAvailable(QString)),
             this, SLOT(newerVersionAvailable(QString)));
 }
 
@@ -319,6 +319,7 @@
     delete m_activityLog;
     delete m_preferencesDialog;
     delete m_layerTreeDialog;
+    delete m_versionTester;
     Profiles::getInstance()->dump();
 //    SVDEBUG << "MainWindow::~MainWindow finishing" << endl;
 }