aboutsummaryrefslogtreecommitdiffstats
path: root/src/QueueSave.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-17 01:01:15 +0200
committerMax Kellermann <max@duempel.org>2013-10-17 01:01:15 +0200
commitbe8ceae6e6c2836233dd8acedd829b18943f820a (patch)
treef625c58523ccee5c27c082c49e15c2d142d836fb /src/QueueSave.cxx
parent67ae033de7e769067035f76c992e21d3616bf3fe (diff)
downloadmpd-be8ceae6e6c2836233dd8acedd829b18943f820a.tar.gz
mpd-be8ceae6e6c2836233dd8acedd829b18943f820a.tar.xz
mpd-be8ceae6e6c2836233dd8acedd829b18943f820a.zip
Song: GetURI() returns std::string
Diffstat (limited to 'src/QueueSave.cxx')
-rw-r--r--src/QueueSave.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/QueueSave.cxx b/src/QueueSave.cxx
index 0c036d963..30c669538 100644
--- a/src/QueueSave.cxx
+++ b/src/QueueSave.cxx
@@ -40,10 +40,8 @@
static void
queue_save_database_song(FILE *fp, int idx, const Song *song)
{
- char *uri = song->GetURI();
-
- fprintf(fp, "%i:%s\n", idx, uri);
- g_free(uri);
+ const auto uri = song->GetURI();
+ fprintf(fp, "%i:%s\n", idx, uri.c_str());
}
static void