aboutsummaryrefslogtreecommitdiffstats
path: root/src/QueueSave.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-18 01:12:47 +0200
committerMax Kellermann <max@duempel.org>2013-10-18 01:12:47 +0200
commitbcfc62a3f2bd79faeef55234bcdfaa10c3577273 (patch)
tree0942b68f235a2f77ffc3f6f793e898a7865c5f24 /src/QueueSave.cxx
parentd1924867db6fff577274966721d0ff855a912ae9 (diff)
downloadmpd-bcfc62a3f2bd79faeef55234bcdfaa10c3577273.tar.gz
mpd-bcfc62a3f2bd79faeef55234bcdfaa10c3577273.tar.xz
mpd-bcfc62a3f2bd79faeef55234bcdfaa10c3577273.zip
PlaylistEdit, QueueSave: free the Song object after Append()
Fix for a major memory leak.
Diffstat (limited to 'src/QueueSave.cxx')
-rw-r--r--src/QueueSave.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/QueueSave.cxx b/src/QueueSave.cxx
index 7fe985a69..c45390097 100644
--- a/src/QueueSave.cxx
+++ b/src/QueueSave.cxx
@@ -128,4 +128,6 @@ queue_load_song(TextFile &file, const char *line, queue *queue)
if (db != nullptr)
db->ReturnSong(song);
+ else
+ song->Free();
}