mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Only remove from pipeline on destruction if still running
This commit is contained in:
@@ -231,7 +231,9 @@ QtScriptResolver::QtScriptResolver( const QString& scriptPath )
|
||||
|
||||
QtScriptResolver::~QtScriptResolver()
|
||||
{
|
||||
Tomahawk::Pipeline::instance()->removeResolver( this );
|
||||
if ( !m_stopped )
|
||||
stop();
|
||||
|
||||
delete m_engine;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user