Song: GetURI() returns std::string

This commit is contained in:
Max Kellermann
2013-10-17 01:01:15 +02:00
parent 67ae033de7
commit be8ceae6e6
10 changed files with 62 additions and 86 deletions

View File

@@ -43,9 +43,8 @@ playlist_print_song(FILE *file, const Song *song)
if (!path.IsNull())
fprintf(file, "%s\n", path.c_str());
} else {
char *uri = song->GetURI();
const Path uri_fs = Path::FromUTF8(uri);
g_free(uri);
const auto uri_utf8 = song->GetURI();
const Path uri_fs = Path::FromUTF8(uri_utf8.c_str());
if (!uri_fs.IsNull())
fprintf(file, "%s\n", uri_fs.c_str());