aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-03 14:51:37 +0100
committerMax Kellermann <max@duempel.org>2009-01-03 14:51:37 +0100
commitc24a102c989922cb11fb655b9d1e3d56bdc5200b (patch)
treeeb7ecd0d3792759b523d441acd0c9b6d0c19b07d
parent2189796b96f94e93423a4f9931c7199d7da6dfa7 (diff)
downloadmpd-c24a102c989922cb11fb655b9d1e3d56bdc5200b.tar.gz
mpd-c24a102c989922cb11fb655b9d1e3d56bdc5200b.tar.xz
mpd-c24a102c989922cb11fb655b9d1e3d56bdc5200b.zip
tag_pool: use GLib instead of utils.h
-rw-r--r--src/tag_pool.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tag_pool.c b/src/tag_pool.c
index 1c7ae31ab..8427fda9e 100644
--- a/src/tag_pool.c
+++ b/src/tag_pool.c
@@ -17,7 +17,6 @@
*/
#include "tag_pool.h"
-#include "utils.h"
#include <assert.h>
@@ -71,7 +70,7 @@ static struct slot *slot_alloc(struct slot *next,
{
struct slot *slot;
- slot = xmalloc(sizeof(*slot) - sizeof(slot->item.value) + length + 1);
+ slot = g_malloc(sizeof(*slot) - sizeof(slot->item.value) + length + 1);
slot->next = next;
slot->ref = 1;
slot->item.type = type;
@@ -154,5 +153,5 @@ void tag_pool_put_item(struct tag_item *item)
}
*slot_p = slot->next;
- free(slot);
+ g_free(slot);
}