mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
Makes ArenaAllocator.deinit() not require a mutable reference.
This commit is contained in:
parent
a090a5e3bc
commit
cf67d30cdc
@ -533,7 +533,7 @@ pub const ArenaAllocator = struct {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn deinit(self: *ArenaAllocator) void {
|
||||
pub fn deinit(self: ArenaAllocator) void {
|
||||
var it = self.buffer_list.first;
|
||||
while (it) |node| {
|
||||
// this has to occur before the free because the free frees node
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user