tag_pool: use GLib instead of utils.h
This commit is contained in:
parent
2189796b96
commit
c24a102c98
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user