diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2025-06-11 23:34:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-11 23:34:46 +0200 |
| commit | 50aebab619c16e4147659d1c1b89ce0d7cc2650d (patch) | |
| tree | 85670f84862337f94ef6d1235d9d6a79dda3b959 /src/testing | |
| parent | 7a2871dee386e51ab073b05728671336c31cbb98 (diff) | |
| parent | 21192b733d36ad983cf23efaf5e60fe7a245c405 (diff) | |
Merge pull request #657 from BradLewis/fix/memory-leak-tests
Fix memory leak in tests and replace deprecated `append_bits_128`
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing.odin | 10 |
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) } |