From c8594c69b612005c7507ad00f7274ca7791197d7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Oct 2018 14:15:28 +0100 Subject: Cache commonly used nodes in the world --- test/test_writer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/test_writer.c') 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); } -- cgit v1.2.1