From c24a102c989922cb11fb655b9d1e3d56bdc5200b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Jan 2009 14:51:37 +0100 Subject: tag_pool: use GLib instead of utils.h --- src/tag_pool.c | 5 ++--- 1 file 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 @@ -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); } -- cgit v1.2.3