aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_print.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-16 00:04:03 +0200
committerMax Kellermann <max@duempel.org>2012-08-16 00:04:03 +0200
commitf45616e5f6f7d6aa0fb5ca90a0599eacddf1166b (patch)
tree5ee81fb82624bca41381005b92f8cd316d32e51b /src/playlist_print.c
parente391f4b17b2fdd092b729f0dfec0b84265894e41 (diff)
parentef5125f8f4ee992c5a8f24d1b93851db5df5c43d (diff)
downloadmpd-f45616e5f6f7d6aa0fb5ca90a0599eacddf1166b.tar.gz
mpd-f45616e5f6f7d6aa0fb5ca90a0599eacddf1166b.tar.xz
mpd-f45616e5f6f7d6aa0fb5ca90a0599eacddf1166b.zip
Merge branch 'v0.17.x'
Diffstat (limited to 'src/playlist_print.c')
-rw-r--r--src/playlist_print.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/playlist_print.c b/src/playlist_print.c
index 78f1cb294..204ce3582 100644
--- a/src/playlist_print.c
+++ b/src/playlist_print.c
@@ -156,6 +156,9 @@ playlist_provider_print(struct client *client, const char *uri,
song_print_info(client, song);
else
song_print_uri(client, song);
+
+ if (!song_in_database(song) || song_is_detached(song))
+ song_free(song);
}
g_free(base_uri);