From 3875b10bb4e2129d7b3e29ae5c607900429ad4a3 Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Fri, 12 Feb 2016 22:13:58 +0100 Subject: [PATCH] Don't leak spotify info plugin --- src/libtomahawk/accounts/spotify/SpotifyAccount.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libtomahawk/accounts/spotify/SpotifyAccount.cpp b/src/libtomahawk/accounts/spotify/SpotifyAccount.cpp index e4cf790f8..3ff5d9ed6 100644 --- a/src/libtomahawk/accounts/spotify/SpotifyAccount.cpp +++ b/src/libtomahawk/accounts/spotify/SpotifyAccount.cpp @@ -116,6 +116,12 @@ SpotifyAccount::~SpotifyAccount() { clearUser(); + if ( m_infoPlugin ) + { + Tomahawk::InfoSystem::InfoSystem::instance()->removeInfoPlugin( infoPlugin() ); + } + + if ( m_spotifyResolver.isNull() ) return;