Fix a crash bug when clearing the playlist, and then advancing to the next track

This commit is contained in:
David Sansome 2010-03-10 14:06:34 +00:00
parent b8d7773776
commit 4988d45f23
1 changed files with 1 additions and 0 deletions

View File

@ -632,6 +632,7 @@ void Playlist::UpdateScrobblePoint() {
void Playlist::Clear() { void Playlist::Clear() {
qDeleteAll(items_); qDeleteAll(items_);
items_.clear(); items_.clear();
virtual_items_.clear();
reset(); reset();
Save(); Save();