Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
4ad14f6a
Commit
4ad14f6a
authored
Feb 17, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TagId3: use xstrdup() instead of g_strdup()
parent
579e48ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
TagId3.cxx
src/tag/TagId3.cxx
+4
-3
No files found.
src/tag/TagId3.cxx
View file @
4ad14f6a
...
...
@@ -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
));
x
strdup
(
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
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment