aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-20 23:06:31 +0000
committerDavid Robillard <d@drobilla.net>2012-02-20 23:06:31 +0000
commit2b2e4f1007d216841358009f8ee0cadee2c69bb6 (patch)
treebc923e7d1deb7dc0e4183062b1a06d5c51b068d3 /src
parentb837d45edeadde9c0b8d2c2c25a04ebc6dfc8115 (diff)
downloadserd-2b2e4f1007d216841358009f8ee0cadee2c69bb6.tar.gz
serd-2b2e4f1007d216841358009f8ee0cadee2c69bb6.tar.bz2
serd-2b2e4f1007d216841358009f8ee0cadee2c69bb6.zip
Fix collection writing memory leaks.
git-svn-id: http://svn.drobilla.net/serd/trunk@308 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src')
-rw-r--r--src/writer.c4
1 files changed, 2 insertions, 2 deletions
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);