Commit ef5125f8 authored by Max Kellermann's avatar Max Kellermann

playlist_print: fix memory leak

parent bf2e0707
...@@ -12,6 +12,7 @@ ver 0.17.2 (2012/??/??) ...@@ -12,6 +12,7 @@ ver 0.17.2 (2012/??/??)
* mapper: fix non-UTF8 music directory name * mapper: fix non-UTF8 music directory name
* mapper: fix potential crash in file permission check * mapper: fix potential crash in file permission check
* playlist: fix use-after-free bug * playlist: fix use-after-free bug
* playlist: fix memory leak
ver 0.17.1 (2012/07/31) ver 0.17.1 (2012/07/31)
......
...@@ -163,6 +163,9 @@ playlist_provider_print(struct client *client, const char *uri, ...@@ -163,6 +163,9 @@ playlist_provider_print(struct client *client, const char *uri,
song_print_info(client, song); song_print_info(client, song);
else else
song_print_uri(client, song); song_print_uri(client, song);
if (!song_in_database(song))
song_free(song);
} }
g_free(base_uri); g_free(base_uri);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment