playlist_song: fix NULL pointer dereference

This commit is contained in:
Max Kellermann 2011-05-09 18:03:45 +02:00
parent 246db3d565
commit 9402b23dd5
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -1,5 +1,6 @@
ver 0.16.3 (2011/??/??)
* fix assertion failure in audio format mask parser
* fix NULL pointer dereference in playlist parser
* decoder:
- ffmpeg: support libavcodec 0.7

View File

@ -129,7 +129,7 @@ playlist_check_translate_song(struct song *song, const char *base_uri)
else
uri = g_strdup(uri);
if (uri_has_scheme(base_uri)) {
if (uri_has_scheme(uri)) {
dest = song_remote_new(uri);
g_free(uri);
} else {