diff options
author | Max Kellermann <max@duempel.org> | 2014-02-17 22:42:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-17 22:42:54 +0100 |
commit | 4ad14f6a2c58854c3a00fb44bf5fa5340fe6a5c9 (patch) | |
tree | 63b2b5cc35da9ecd6f809a71a7f168e280da6bf0 /src | |
parent | 579e48edbb3d897e04bcf50ef630cab597fe6d84 (diff) | |
download | mpd-4ad14f6a2c58854c3a00fb44bf5fa5340fe6a5c9.tar.gz mpd-4ad14f6a2c58854c3a00fb44bf5fa5340fe6a5c9.tar.xz mpd-4ad14f6a2c58854c3a00fb44bf5fa5340fe6a5c9.zip |
TagId3: use xstrdup() instead of g_strdup()
Diffstat (limited to 'src')
-rw-r--r-- | src/tag/TagId3.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tag/TagId3.cxx b/src/tag/TagId3.cxx index d2d84a1bf..3a8df8322 100644 --- a/src/tag/TagId3.cxx +++ b/src/tag/TagId3.cxx @@ -22,6 +22,7 @@ #include "TagHandler.hxx" #include "TagTable.hxx" #include "TagBuilder.hxx" +#include "util/Alloc.hxx" #include "util/StringUtil.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" @@ -117,7 +118,7 @@ import_id3_string(bool is_id3v1, const id3_ucs4_t *ucs4) } id3_utf8_t *utf8_stripped = (id3_utf8_t *) - g_strdup(Strip((char *)utf8)); + xstrdup(Strip((char *)utf8)); free(utf8); return utf8_stripped; @@ -166,7 +167,7 @@ tag_id3_import_text_frame(struct id3_tag *tag, const struct id3_frame *frame, tag_handler_invoke_tag(handler, handler_ctx, type, (const char *)utf8); - g_free(utf8); + free(utf8); } } @@ -217,7 +218,7 @@ tag_id3_import_comment_frame(struct id3_tag *tag, return; tag_handler_invoke_tag(handler, handler_ctx, type, (const char *)utf8); - g_free(utf8); + free(utf8); } /** |