diff options
author | Max Kellermann <max@duempel.org> | 2010-09-23 08:49:21 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-09-23 08:49:21 +0200 |
commit | 635cfbae131b323b62ca50c6bffb0b801b57aafe (patch) | |
tree | 6a587c6b95ea79d64694f08efa74c86304f91639 /src/decoder/mad_decoder_plugin.c | |
parent | 922e51e8a94de09ceec37bc6d26a0802de2e75d7 (diff) | |
download | mpd-635cfbae131b323b62ca50c6bffb0b801b57aafe.tar.gz mpd-635cfbae131b323b62ca50c6bffb0b801b57aafe.tar.xz mpd-635cfbae131b323b62ca50c6bffb0b801b57aafe.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/mad_decoder_plugin.c b/src/decoder/mad_decoder_plugin.c index 5aa09b336..a11d1b020 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; } |