From 2b2e4f1007d216841358009f8ee0cadee2c69bb6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 20 Feb 2012 23:06:31 +0000 Subject: Fix collection writing memory leaks. git-svn-id: http://svn.drobilla.net/serd/trunk@308 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- src/writer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/writer.c b/src/writer.c index 9aab4b55..03ba9781 100644 --- a/src/writer.c +++ b/src/writer.c @@ -512,7 +512,7 @@ serd_writer_write_statement(SerdWriter* writer, object_datatype, object_lang)) { // Reached end of list if (--writer->list_depth == 0 && writer->list_subj.type) { - reset_context(writer, false); + reset_context(writer, true); writer->context.subject = writer->list_subj; writer->list_subj = SERD_NODE_NULL; } @@ -560,7 +560,7 @@ serd_writer_write_statement(SerdWriter* writer, ++writer->indent; } - reset_context(writer, false); + reset_context(writer, true); copy_node(&writer->context.subject, subject); serd_writer_write_predicate(writer, flags, predicate); -- cgit v1.2.1