1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-16 19:14:06 +02:00

Make sure DownloadManager gets deleted correctly.

This commit is contained in:
Christian Muehlhaeuser
2015-03-24 15:28:32 +01:00
parent ac33a07e83
commit de90512371

View File

@@ -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<AudioEngine>( 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();