From 2d43bf2b5c301ca1e4766b5048650ca1e29e38c0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 17 Nov 2018 21:01:59 +0100 Subject: Align nodes on the reader stack --- src/reader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/reader.c') diff --git a/src/reader.c b/src/reader.c index e819d472..5ff2cbd9 100644 --- a/src/reader.c +++ b/src/reader.c @@ -173,7 +173,7 @@ serd_reader_new(SerdWorld* const world, me->world = world; me->sink = sink; - me->stack = serd_stack_new(stack_size); + me->stack = serd_stack_new(stack_size, serd_node_align); me->syntax = syntax; me->next_id = 1; me->strict = !(flags & SERD_READ_LAX); @@ -202,7 +202,7 @@ serd_reader_free(SerdReader* const reader) serd_reader_finish(reader); - free(reader->stack.buf); + serd_free_aligned(reader->stack.buf); free(reader->bprefix); free(reader); } -- cgit v1.2.1