diff options
author | David Robillard <d@drobilla.net> | 2018-10-28 14:15:28 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | c8594c69b612005c7507ad00f7274ca7791197d7 (patch) | |
tree | 74a33b550deb1a953a6a9d53872c626878194206 /test/test_writer.c | |
parent | e750f4b6734d086e433e3c9c05b2252f43f4be8f (diff) | |
download | serd-c8594c69b612005c7507ad00f7274ca7791197d7.tar.gz serd-c8594c69b612005c7507ad00f7274ca7791197d7.tar.bz2 serd-c8594c69b612005c7507ad00f7274ca7791197d7.zip |
Cache commonly used nodes in the world
Diffstat (limited to 'test/test_writer.c')
-rw-r--r-- | test/test_writer.c | 3 |
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); } |