mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-17 19:37:09 +02:00
Make sure DownloadManager gets deleted correctly.
This commit is contained in:
@@ -44,6 +44,7 @@
|
|||||||
#include "database/LocalCollection.h"
|
#include "database/LocalCollection.h"
|
||||||
#include "Pipeline.h"
|
#include "Pipeline.h"
|
||||||
#include "DropJob.h"
|
#include "DropJob.h"
|
||||||
|
#include "DownloadManager.h"
|
||||||
#include "EchonestCatalogSynchronizer.h"
|
#include "EchonestCatalogSynchronizer.h"
|
||||||
#include "database/DatabaseImpl.h"
|
#include "database/DatabaseImpl.h"
|
||||||
#include "network/Msg.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
|
// Cause the creation of the nam, but don't need to address it directly, so prevent warning
|
||||||
tDebug() << "Setting NAM:" << Tomahawk::Utils::nam();
|
tDebug() << "Setting NAM:" << Tomahawk::Utils::nam();
|
||||||
|
|
||||||
|
DownloadManager::instance();
|
||||||
m_audioEngine = QPointer<AudioEngine>( new AudioEngine );
|
m_audioEngine = QPointer<AudioEngine>( new AudioEngine );
|
||||||
|
|
||||||
// init pipeline and resolver factories
|
// init pipeline and resolver factories
|
||||||
@@ -293,6 +295,8 @@ TomahawkApp::~TomahawkApp()
|
|||||||
if ( Pipeline::instance() )
|
if ( Pipeline::instance() )
|
||||||
Pipeline::instance()->stop();
|
Pipeline::instance()->stop();
|
||||||
|
|
||||||
|
delete DownloadManager::instance();
|
||||||
|
|
||||||
if ( !m_servent.isNull() )
|
if ( !m_servent.isNull() )
|
||||||
delete m_servent.data();
|
delete m_servent.data();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user