properly deinit allocator (revealing new bug)

This commit is contained in:
koniifer 2024-12-31 22:37:54 +00:00
parent 03bf6548dc
commit 83f4595c74

View file

@ -24,7 +24,8 @@ SimpleAllocator := struct {
} else if target == target_hbvm_ableos {
target.free(alloced.ptr, alloced.len)
}
};
}
self.allocations.deinit();
*self = Self.new()
}
alloc := fn(self: ^Self, $T: type, count: uint): ?^T {