diff options
Diffstat (limited to 'src/Page.cxx')
-rw-r--r-- | src/Page.cxx | 10 |
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; |