From be8ceae6e6c2836233dd8acedd829b18943f820a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 01:01:15 +0200 Subject: Song: GetURI() returns std::string --- src/UpdateRemove.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/UpdateRemove.cxx') diff --git a/src/UpdateRemove.cxx b/src/UpdateRemove.cxx index d43ad92c7..6bccdafcc 100644 --- a/src/UpdateRemove.cxx +++ b/src/UpdateRemove.cxx @@ -50,13 +50,12 @@ static Cond remove_cond; static void song_remove_event(void) { - char *uri; - assert(removed_song != NULL); - uri = removed_song->GetURI(); - FormatInfo(update_domain, "removing %s", uri); - g_free(uri); + { + const auto uri = removed_song->GetURI(); + FormatInfo(update_domain, "removing %s", uri.c_str()); + } #ifdef ENABLE_SQLITE /* if the song has a sticker, remove it */ -- cgit v1.2.3