From 41bbb6d138a8a05bd6bc9fbd3f94a551d9987197 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 73e92d40..09e90076 100644 --- a/src/reader.c +++ b/src/reader.c @@ -188,7 +188,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); @@ -217,7 +217,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