aboutsummaryrefslogtreecommitdiffstats
path: root/src/Page.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/Page.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 '')
-rw-r--r--src/Page.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Page.cxx b/src/Page.cxx
index 91033a1ec..c46d743ca 100644
--- a/src/Page.cxx
+++ b/src/Page.cxx
@@ -19,19 +19,19 @@
#include "config.h"
#include "Page.hxx"
-
-#include <glib.h>
+#include "util/Alloc.hxx"
#include <new>
#include <assert.h>
#include <string.h>
+#include <stdlib.h>
Page *
Page::Create(size_t size)
{
- void *p = g_malloc(sizeof(Page) + size -
- sizeof(Page::data));
+ void *p = xalloc(sizeof(Page) + size -
+ sizeof(Page::data));
return ::new(p) Page(size);
}
@@ -63,7 +63,7 @@ Page::Unref()
if (unused) {
this->Page::~Page();
- g_free(this);
+ free(this);
}
return unused;