playlist_print: fix memory leak

This commit is contained in:
Max Kellermann 2012-08-15 23:59:52 +02:00
parent bf2e07074b
commit ef5125f8f4
2 changed files with 4 additions and 0 deletions

1
NEWS
View File

@ -12,6 +12,7 @@ ver 0.17.2 (2012/??/??)
* mapper: fix non-UTF8 music directory name
* mapper: fix potential crash in file permission check
* playlist: fix use-after-free bug
* playlist: fix memory leak
ver 0.17.1 (2012/07/31)

View File

@ -163,6 +163,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_free(song);
}
g_free(base_uri);