aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-10 22:00:19 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-06-10 22:00:19 -0400
commit21192b733d36ad983cf23efaf5e60fe7a245c405 (patch)
treee9ec711173aededc360f6a0bab4aa52875e8ebcc /src/testing
parent3f089f4d757e2a705056eb331c74442ab48862aa (diff)
Fix memory leak in tests and replace deprecated `append_bits_128`
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.odin10
1 files changed, 0 insertions, 10 deletions
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)
}