aboutsummaryrefslogtreecommitdiff
path: root/src/decoder/mad_decoder_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-09-23 08:49:21 +0200
committerMax Kellermann <max@duempel.org>2010-09-23 08:49:21 +0200
commit635cfbae131b323b62ca50c6bffb0b801b57aafe (patch)
tree6a587c6b95ea79d64694f08efa74c86304f91639 /src/decoder/mad_decoder_plugin.c
parent922e51e8a94de09ceec37bc6d26a0802de2e75d7 (diff)
decoder_control: use g_free() to manage mixramp allocations
Be consistent with the rest of MPD, and don't use the non-portable header "malloc.h".
Diffstat (limited to 'src/decoder/mad_decoder_plugin.c')
-rw-r--r--src/decoder/mad_decoder_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/mad_decoder_plugin.c b/src/decoder/mad_decoder_plugin.c
index 5aa09b33..a11d1b02 100644
--- a/src/decoder/mad_decoder_plugin.c
+++ b/src/decoder/mad_decoder_plugin.c
@@ -285,10 +285,10 @@ parse_id3_mixramp(char **mixramp_start, char **mixramp_end,
(&frame->fields[2]));
if (g_ascii_strcasecmp(key, "mixramp_start") == 0) {
- *mixramp_start = strdup(value);
+ *mixramp_start = g_strdup(value);
found = true;
} else if (g_ascii_strcasecmp(key, "mixramp_end") == 0) {
- *mixramp_end = strdup(value);
+ *mixramp_end = g_strdup(value);
found = true;
}