Commit dc554ca6 authored by Denis Krjuchkov's avatar Denis Krjuchkov

PlaylistSong.cxx: don't use g_build_filename

parent cbb9149a
...@@ -165,12 +165,14 @@ playlist_check_translate_song(Song *song, const char *base_uri, ...@@ -165,12 +165,14 @@ playlist_check_translate_song(Song *song, const char *base_uri,
base_uri = nullptr; base_uri = nullptr;
} }
char *allocated = nullptr; std::string full_uri;
if (base_uri != nullptr) if (base_uri != nullptr) {
uri = allocated = g_build_filename(base_uri, uri, nullptr); full_uri = PathTraitsUTF8::Build(base_uri, uri);
uri = full_uri.c_str();
}
Song *dest = playlist_check_load_song(song, uri, secure); Song *dest = playlist_check_load_song(song, uri, secure);
song->Free(); song->Free();
g_free(allocated);
return dest; return dest;
} }
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