Fix occasional CoverView crash
This commit is contained in:
parent
ff84f929ae
commit
a1b5bf42db
|
@ -75,10 +75,12 @@ CoverView::Pulse()
|
||||||
if (fCurrentSong.InitCheck()) {
|
if (fCurrentSong.InitCheck()) {
|
||||||
fCurrentSong = song;
|
fCurrentSong = song;
|
||||||
delete fCover;
|
delete fCover;
|
||||||
|
fCover = NULL;
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
} else if (song != fCurrentSong) {
|
} else if (song != fCurrentSong) {
|
||||||
fCurrentSong = song;
|
fCurrentSong = song;
|
||||||
|
if (fCover != NULL)
|
||||||
delete fCover;
|
delete fCover;
|
||||||
fCover = song.Cover();
|
fCover = song.Cover();
|
||||||
Invalidate();
|
Invalidate();
|
||||||
|
|
Ŝarĝante…
Reference in New Issue