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