aboutsummaryrefslogtreecommitdiffstats
path: root/src/QueueSave.cxx
diff options
context:
space:
mode:
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