aboutsummaryrefslogtreecommitdiffstats
path: root/src/Page.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Page.cxx')
-rw-r--r--src/Page.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Page.cxx b/src/Page.cxx
index 91033a1ec..e22134bbc 100644
--- a/src/Page.cxx
+++ b/src/Page.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2013 The Music Player Daemon Project
+ * Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -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;