aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-25 19:01:58 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-25 19:01:58 +0000
commit2a76d4c8cf1b17799fe8103640ef3d46caf189a3 (patch)
tree141525d272bf725c7f125187dd3a870fa5a42bb0 /src/playlist.c
parentb677eb35889a8a493723aac4b21e9ed04c98a2b2 (diff)
downloadmpd-2a76d4c8cf1b17799fe8103640ef3d46caf189a3.tar.gz
mpd-2a76d4c8cf1b17799fe8103640ef3d46caf189a3.tar.xz
mpd-2a76d4c8cf1b17799fe8103640ef3d46caf189a3.zip
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
Diffstat (limited to '')
-rw-r--r--src/playlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist.c b/src/playlist.c
index ee71d9d82..bd1d254b6 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -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;
}