diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 01:01:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 01:01:15 +0200 |
commit | be8ceae6e6c2836233dd8acedd829b18943f820a (patch) | |
tree | f625c58523ccee5c27c082c49e15c2d142d836fb /src/PlaylistSave.cxx | |
parent | 67ae033de7e769067035f76c992e21d3616bf3fe (diff) |
Song: GetURI() returns std::string
Diffstat (limited to 'src/PlaylistSave.cxx')
-rw-r--r-- | src/PlaylistSave.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx index 7889f778a..5eb0e1180 100644 --- a/src/PlaylistSave.cxx +++ b/src/PlaylistSave.cxx @@ -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()); |