From 21192b733d36ad983cf23efaf5e60fe7a245c405 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Tue, 10 Jun 2025 22:00:19 -0400 Subject: Fix memory leak in tests and replace deprecated `append_bits_128` --- src/testing/testing.odin | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/testing') diff --git a/src/testing/testing.odin b/src/testing/testing.odin index 303f577..87f740a 100644 --- a/src/testing/testing.odin +++ b/src/testing/testing.odin @@ -117,19 +117,9 @@ setup :: proc(src: ^Source) { @(private) teardown :: proc(src: ^Source) { - //A lot of these deletes are managed by other systems in ols, but to simplify it, we just delete them here in tests. - server.free_index() server.indexer.index = {} - delete(src.document.package_name) - - for k, v in server.build_cache.loaded_pkgs { - delete(k) - } - - delete(server.build_cache.loaded_pkgs) - common.scratch_allocator_destroy(src.document.allocator) } -- cgit v1.2.3