lastfm: use sink argument and fix possible usage of m_service after delete

This commit is contained in:
Andrzej Rybczak
2015-05-23 19:33:20 +02:00
parent 746527f1ea
commit 52ff94d9c8
2 changed files with 9 additions and 11 deletions

View File

@@ -2231,7 +2231,7 @@ void ShowArtistInfo::run()
if (!artist.empty())
{
myLastfm->queueJob(LastFm::ArtistInfo(artist, Config.lastfm_preferred_language));
myLastfm->queueJob(new LastFm::ArtistInfo(artist, Config.lastfm_preferred_language));
myLastfm->switchTo();
}
# endif // HAVE_CURL_CURL_H