From d846c8a693c6622d221dc1745018d2c65877685d Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Sat, 26 May 2012 09:12:11 -0400 Subject: [PATCH] Fix ported from ResolverAccount to CustomAtticaAccount omission --- src/accounts/spotify/SpotifyAccount.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/accounts/spotify/SpotifyAccount.cpp b/src/accounts/spotify/SpotifyAccount.cpp index 16b9e22a0..5f4add6ec 100644 --- a/src/accounts/spotify/SpotifyAccount.cpp +++ b/src/accounts/spotify/SpotifyAccount.cpp @@ -88,6 +88,12 @@ SpotifyAccount::SpotifyAccount( const QString& accountId ) SpotifyAccount::~SpotifyAccount() { clearUser(); + + if ( m_spotifyResolver.isNull() ) + return; + + Pipeline::instance()->removeScriptResolver( m_spotifyResolver.data()->filePath() ); + delete m_spotifyResolver.data(); }