From de9051237130cea1b14c9c3cf5e23eb9e54013a0 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Tue, 24 Mar 2015 15:28:32 +0100 Subject: [PATCH] Make sure DownloadManager gets deleted correctly. --- src/tomahawk/TomahawkApp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tomahawk/TomahawkApp.cpp b/src/tomahawk/TomahawkApp.cpp index e6272f95c..75998f21c 100644 --- a/src/tomahawk/TomahawkApp.cpp +++ b/src/tomahawk/TomahawkApp.cpp @@ -44,6 +44,7 @@ #include "database/LocalCollection.h" #include "Pipeline.h" #include "DropJob.h" +#include "DownloadManager.h" #include "EchonestCatalogSynchronizer.h" #include "database/DatabaseImpl.h" #include "network/Msg.h" @@ -214,6 +215,7 @@ TomahawkApp::init() // Cause the creation of the nam, but don't need to address it directly, so prevent warning tDebug() << "Setting NAM:" << Tomahawk::Utils::nam(); + DownloadManager::instance(); m_audioEngine = QPointer( new AudioEngine ); // init pipeline and resolver factories @@ -293,6 +295,8 @@ TomahawkApp::~TomahawkApp() if ( Pipeline::instance() ) Pipeline::instance()->stop(); + delete DownloadManager::instance(); + if ( !m_servent.isNull() ) delete m_servent.data();