aboutsummaryrefslogtreecommitdiffstats
path: root/src/cue/CueParser.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/cue/CueParser.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/cue/CueParser.cxx')
-rw-r--r--src/cue/CueParser.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/cue/CueParser.cxx b/src/cue/CueParser.cxx
index 7a226c849..b9927f5e2 100644
--- a/src/cue/CueParser.cxx
+++ b/src/cue/CueParser.cxx
@@ -19,13 +19,12 @@
#include "config.h"
#include "CueParser.hxx"
+#include "util/Alloc.hxx"
#include "util/StringUtil.hxx"
#include "util/CharUtil.hxx"
#include "Song.hxx"
#include "tag/Tag.hxx"
-#include <glib.h>
-
#include <assert.h>
#include <string.h>
#include <stdlib.h>
@@ -290,9 +289,9 @@ CueParser::Feed(const char *line)
assert(!end);
assert(line != nullptr);
- char *allocated = g_strdup(line);
+ char *allocated = xstrdup(line);
Feed2(allocated);
- g_free(allocated);
+ free(allocated);
}
void