From 83cdd0a0c86ae705513225816f8df857c96b4a1f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 Dec 2013 14:39:30 +0100 Subject: TagId3: use free() instead of g_free() for libid3tag allocations --- src/tag/TagId3.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/tag/TagId3.cxx b/src/tag/TagId3.cxx index 37d44c608..3da8cafd7 100644 --- a/src/tag/TagId3.cxx +++ b/src/tag/TagId3.cxx @@ -107,10 +107,10 @@ import_id3_string(bool is_id3v1, const id3_ucs4_t *ucs4) FormatWarning(id3_domain, "Unable to convert %s string to UTF-8: '%s'", encoding, isostr); - g_free(isostr); + free(isostr); return nullptr; } - g_free(isostr); + free(isostr); } else { utf8 = id3_ucs4_utf8duplicate(ucs4); if (gcc_unlikely(utf8 == nullptr)) @@ -118,7 +118,7 @@ import_id3_string(bool is_id3v1, const id3_ucs4_t *ucs4) } utf8_stripped = (id3_utf8_t *)g_strdup(g_strstrip((gchar *)utf8)); - g_free(utf8); + free(utf8); return utf8_stripped; } -- cgit v1.2.3