void TopLists::unloadLists() { m_albumsLoaded = false; m_artistsLoaded = false; m_tracksLoaded = false; removeAllTracks(); removeAllAlbums(); removeAllArtists(); }
Search::~Search() { //we need to wait for the results //m_cancelSearch = true; //while (m_currentSearch != NULL) // ; Logger::printOut("cleaning after search"); removeAllTracks(); removeAllAlbums(); removeAllArtists(); Logger::printOut("cleaning after search done"); }
SxArtist::~SxArtist() { while (m_isLoadingDetails) { //Session::getInstance()->processEvents(); Logger::printOut("waiting for artist to die"); } removeAllTracks(); removeAllAlbums(); removeAllArtists(); if (m_thumb) ThumbStore::getInstance()->removeThumb(m_thumb); delete m_uri; if (hasDetails() && m_browse != NULL) m_dll->sp_artistbrowse_release(m_browse); m_dll->sp_artist_release(m_spArtist); delete m_dll; }