aboutsummaryrefslogtreecommitdiffstats
path: root/src/sink.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-19 17:55:02 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit0f9816d67bc67a396607291f845ca2a33c2285a7 (patch)
treeb31fd1b344305dc984a2109084fa183573a0ae43 /src/sink.c
parent258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff)
downloadserd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip
Use ZixAllocator directly
Diffstat (limited to 'src/sink.c')
-rw-r--r--src/sink.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sink.c b/src/sink.c
index 48ada0c5..61636048 100644
--- a/src/sink.c
+++ b/src/sink.c
@@ -3,24 +3,24 @@
#include "sink.h"
-#include "memory.h"
#include "statement.h"
#include "serd/node.h"
#include "serd/sink.h"
#include "serd/statement.h"
#include "serd/status.h"
+#include "zix/allocator.h"
#include <assert.h>
#include <stdlib.h>
SerdSink*
-serd_sink_new(SerdAllocator* const allocator,
- void* const handle,
- SerdEventFunc event_func,
- SerdFreeFunc free_handle)
+serd_sink_new(ZixAllocator* const allocator,
+ void* const handle,
+ SerdEventFunc event_func,
+ SerdFreeFunc free_handle)
{
- SerdSink* sink = (SerdSink*)serd_acalloc(allocator, 1, sizeof(SerdSink));
+ SerdSink* sink = (SerdSink*)zix_calloc(allocator, 1, sizeof(SerdSink));
if (sink) {
sink->allocator = allocator;
@@ -40,7 +40,7 @@ serd_sink_free(SerdSink* sink)
sink->free_handle(sink->handle);
}
- serd_afree(sink->allocator, sink);
+ zix_free(sink->allocator, sink);
}
}