aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/GmeDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-07 23:33:46 +0100
committerMax Kellermann <max@duempel.org>2014-01-07 23:35:18 +0100
commit27ca0db7a6143d2e479ff1ae52ec7c349ab1d4f2 (patch)
tree3f200069ab73baa09898fe1f242c6fd85396e2ba /src/decoder/GmeDecoderPlugin.cxx
parent49f34fbf6861f10dbf9eb7549177888394926ff9 (diff)
downloadmpd-27ca0db7a6143d2e479ff1ae52ec7c349ab1d4f2.tar.gz
mpd-27ca0db7a6143d2e479ff1ae52ec7c349ab1d4f2.tar.xz
mpd-27ca0db7a6143d2e479ff1ae52ec7c349ab1d4f2.zip
util/Alloc: new library replacing GLib's g_malloc()
Diffstat (limited to 'src/decoder/GmeDecoderPlugin.cxx')
-rw-r--r--src/decoder/GmeDecoderPlugin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/decoder/GmeDecoderPlugin.cxx b/src/decoder/GmeDecoderPlugin.cxx
index 815fd8d69..aafc8f07d 100644
--- a/src/decoder/GmeDecoderPlugin.cxx
+++ b/src/decoder/GmeDecoderPlugin.cxx
@@ -22,6 +22,7 @@
#include "DecoderAPI.hxx"
#include "CheckAudioFormat.hxx"
#include "tag/TagHandler.hxx"
+#include "util/Alloc.hxx"
#include "util/FormatString.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
@@ -53,7 +54,7 @@ static char *
get_container_name(const char *path_fs)
{
const char *subtune_suffix = uri_get_suffix(path_fs);
- char *path_container = g_strdup(path_fs);
+ char *path_container = xstrdup(path_fs);
char pat[64];
snprintf(pat, sizeof(pat), "%s%s",
@@ -137,7 +138,7 @@ gme_file_decode(Decoder &decoder, const char *path_fs)
Music_Emu *emu;
const char *gme_err =
gme_open_file(path_container, &emu, GME_SAMPLE_RATE);
- g_free(path_container);
+ free(path_container);
if (gme_err != nullptr) {
LogWarning(gme_domain, gme_err);
return;