Commit c24a102c authored by Max Kellermann's avatar Max Kellermann

tag_pool: use GLib instead of utils.h

parent 2189796b
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
*/ */
#include "tag_pool.h" #include "tag_pool.h"
#include "utils.h"
#include <assert.h> #include <assert.h>
...@@ -71,7 +70,7 @@ static struct slot *slot_alloc(struct slot *next, ...@@ -71,7 +70,7 @@ static struct slot *slot_alloc(struct slot *next,
{ {
struct slot *slot; 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->next = next;
slot->ref = 1; slot->ref = 1;
slot->item.type = type; slot->item.type = type;
...@@ -154,5 +153,5 @@ void tag_pool_put_item(struct tag_item *item) ...@@ -154,5 +153,5 @@ void tag_pool_put_item(struct tag_item *item)
} }
*slot_p = slot->next; *slot_p = slot->next;
free(slot); g_free(slot);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment