mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-30 01:00:13 +02:00
Delete AudioEngine after MainWindow
This commit is contained in:
@@ -285,9 +285,6 @@ TomahawkApp::~TomahawkApp()
|
|||||||
if ( !m_scanManager.isNull() )
|
if ( !m_scanManager.isNull() )
|
||||||
delete m_scanManager.data();
|
delete m_scanManager.data();
|
||||||
|
|
||||||
if ( !m_audioEngine.isNull() )
|
|
||||||
delete m_audioEngine.data();
|
|
||||||
|
|
||||||
delete Tomahawk::Accounts::AccountManager::instance();
|
delete Tomahawk::Accounts::AccountManager::instance();
|
||||||
|
|
||||||
#ifndef ENABLE_HEADLESS
|
#ifndef ENABLE_HEADLESS
|
||||||
@@ -295,6 +292,10 @@ TomahawkApp::~TomahawkApp()
|
|||||||
delete m_mainwindow;
|
delete m_mainwindow;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Main Window uses the AudioEngine, so delete it later.
|
||||||
|
if ( !m_audioEngine.isNull() )
|
||||||
|
delete m_audioEngine.data();
|
||||||
|
|
||||||
if ( !m_database.isNull() )
|
if ( !m_database.isNull() )
|
||||||
delete m_database.data();
|
delete m_database.data();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user