From 37fad49393233296540e88c30083f6dd55aa0770 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 13 Jul 2012 09:50:16 +0200 Subject: [PATCH] * Fixed Windows shutdown. --- src/TomahawkApp.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/TomahawkApp.cpp b/src/TomahawkApp.cpp index 5bda3ac69..a78beaba5 100644 --- a/src/TomahawkApp.cpp +++ b/src/TomahawkApp.cpp @@ -381,14 +381,12 @@ TomahawkApp::~TomahawkApp() tLog() << "Deleting AccountManager"; delete Tomahawk::Accounts::AccountManager::instance(); -/* tLog() << "Deleting Cache"; - delete TomahawkUtils::Cache::instance();*/ #ifndef ENABLE_HEADLESS - tLog() << "Deleting Window"; - delete m_mainwindow; tLog() << "Deleting AtticaManager"; delete AtticaManager::instance(); + tLog() << "Deleting Window"; + delete m_mainwindow; #endif tLog() << "Deleting database"; @@ -399,8 +397,11 @@ TomahawkApp::~TomahawkApp() delete Pipeline::instance(); tLog() << "Deleting InfoSystem"; -/* if ( !m_infoSystem.isNull() ) - delete m_infoSystem.data();*/ + if ( !m_infoSystem.isNull() ) + delete m_infoSystem.data(); + + tLog() << "Deleting Cache"; + delete TomahawkUtils::Cache::instance(); tLog() << "Finished shutdown."; }