1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Only remove from pipeline on destruction if still running

This commit is contained in:
Leo Franchi
2012-06-12 09:39:17 +02:00
parent 8cf7f0bb2b
commit ecc8634209

View File

@@ -231,7 +231,9 @@ QtScriptResolver::QtScriptResolver( const QString& scriptPath )
QtScriptResolver::~QtScriptResolver() QtScriptResolver::~QtScriptResolver()
{ {
Tomahawk::Pipeline::instance()->removeResolver( this ); if ( !m_stopped )
stop();
delete m_engine; delete m_engine;
} }