mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 00:09:47 +01:00
Only remove from pipeline on destruction if still running
This commit is contained in:
parent
8cf7f0bb2b
commit
ecc8634209
@ -231,7 +231,9 @@ QtScriptResolver::QtScriptResolver( const QString& scriptPath )
|
||||
|
||||
QtScriptResolver::~QtScriptResolver()
|
||||
{
|
||||
Tomahawk::Pipeline::instance()->removeResolver( this );
|
||||
if ( !m_stopped )
|
||||
stop();
|
||||
|
||||
delete m_engine;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user