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/SongFilter.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/SongFilter.cxx') diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx index 4b8ae20ba..8874b3448 100644 --- a/src/SongFilter.cxx +++ b/src/SongFilter.cxx @@ -123,9 +123,8 @@ bool SongFilter::Item::Match(const Song &song) const { if (tag == LOCATE_TAG_FILE_TYPE || tag == LOCATE_TAG_ANY_TYPE) { - char *uri = song.GetURI(); - const bool result = StringMatch(uri); - g_free(uri); + const auto uri = song.GetURI(); + const bool result = StringMatch(uri.c_str()); if (result || tag == LOCATE_TAG_FILE_TYPE) return result; -- cgit v1.2.3