mem leak: forgot to free stream songs on clearPlaylist() and finishPlaylist()
git-svn-id: https://svn.musicpd.org/mpd/trunk@1160 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
b677eb3588
commit
2a76d4c8cf
@ -142,7 +142,7 @@ void finishPlaylist() {
|
||||
int i;
|
||||
for(i=0;i<playlist.length;i++) {
|
||||
if(playlist.songs[i]->type == SONG_TYPE_URL) {
|
||||
/*freeJustSong(playlist.songs[i]);*/
|
||||
freeJustSong(playlist.songs[i]);
|
||||
}
|
||||
}
|
||||
free(playlist.songs);
|
||||
@ -158,7 +158,7 @@ int clearPlaylist(FILE * fp) {
|
||||
|
||||
for(i=0;i<playlist.length;i++) {
|
||||
if(playlist.songs[i]->type == SONG_TYPE_URL) {
|
||||
/*freeJustSong(playlist.songs[i]);*/
|
||||
freeJustSong(playlist.songs[i]);
|
||||
}
|
||||
playlist.songs[i] = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user