Fix occasional CoverView crash

This commit is contained in:
Jaidyn Ann 2022-05-26 22:41:55 -05:00
parent ff84f929ae
commit a1b5bf42db

View File

@ -75,10 +75,12 @@ CoverView::Pulse()
if (fCurrentSong.InitCheck()) {
fCurrentSong = song;
delete fCover;
fCover = NULL;
Invalidate();
}
} else if (song != fCurrentSong) {
fCurrentSong = song;
if (fCover != NULL)
delete fCover;
fCover = song.Cover();
Invalidate();