aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_writer.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_writer.c')
-rw-r--r--test/test_writer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_writer.c b/test/test_writer.c
index 8b0d31c6..7e72ec5c 100644
--- a/test/test_writer.c
+++ b/test/test_writer.c
@@ -75,7 +75,7 @@ test_write_failed_alloc(void)
SerdFailingAllocator allocator = serd_failing_allocator();
SerdWorld* world = serd_world_new(&allocator.base);
- SerdNodes* nodes = serd_nodes_new(&allocator.base);
+ SerdNodes* nodes = serd_world_nodes(world);
SerdEnv* env = serd_env_new(NULL, serd_empty_string());
SerdBuffer buffer = {&allocator.base, NULL, 0};
SerdOutputStream output = serd_open_output_buffer(&buffer);
@@ -128,7 +128,6 @@ test_write_failed_alloc(void)
serd_buffer_close(&buffer);
serd_free(NULL, buffer.buf);
- serd_nodes_free(nodes);
serd_world_free(world);
}