diff options
author | Max Kellermann <max@duempel.org> | 2013-12-04 14:39:30 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-04 14:39:30 +0100 |
commit | 83cdd0a0c86ae705513225816f8df857c96b4a1f (patch) | |
tree | 93c3940315f221d9d91b7dd54ca341f5a515573e /src/tag | |
parent | 53c69cd2ce867a579984db9206483f5712925242 (diff) | |
download | mpd-83cdd0a0c86ae705513225816f8df857c96b4a1f.tar.gz mpd-83cdd0a0c86ae705513225816f8df857c96b4a1f.tar.xz mpd-83cdd0a0c86ae705513225816f8df857c96b4a1f.zip |
TagId3: use free() instead of g_free() for libid3tag allocations
Diffstat (limited to 'src/tag')
-rw-r--r-- | src/tag/TagId3.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |