From 2a76d4c8cf1b17799fe8103640ef3d46caf189a3 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 25 May 2004 19:01:58 +0000 Subject: 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 --- src/playlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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;itype == 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;itype == SONG_TYPE_URL) { - /*freeJustSong(playlist.songs[i]);*/ + freeJustSong(playlist.songs[i]); } playlist.songs[i] = NULL; } -- cgit v1.2.3