diff options
author | David Robillard <d@drobilla.net> | 2018-11-17 21:01:59 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 2d43bf2b5c301ca1e4766b5048650ca1e29e38c0 (patch) | |
tree | 46d05984f9ece93ce5c5d1fabd2b5d849cc835bf /src/reader.c | |
parent | 31ef2936a1549cdc125c387a8f541d8b70e60c21 (diff) | |
download | serd-2d43bf2b5c301ca1e4766b5048650ca1e29e38c0.tar.gz serd-2d43bf2b5c301ca1e4766b5048650ca1e29e38c0.tar.bz2 serd-2d43bf2b5c301ca1e4766b5048650ca1e29e38c0.zip |
Align nodes on the reader stack
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |