fix memory lifetime issues (#851)

This commit is contained in:
Techatrix
2022-12-27 05:52:15 +00:00
committed by GitHub
parent 3139a787a1
commit 941882371c
3 changed files with 47 additions and 44 deletions

View File

@@ -488,7 +488,7 @@ pub fn symbolReferences(
}
var handle_dependencies = std.ArrayListUnmanaged([]const u8){};
try store.collectDependencies(store.allocator, handle.*, &handle_dependencies);
try store.collectDependencies(arena.allocator(), handle.*, &handle_dependencies);
for (handle_dependencies.items) |uri| {
try dependencies.put(arena.allocator(), uri, {});