aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_print.c
diff options
context:
space:
mode:
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);