Makes ArenaAllocator.deinit() not require a mutable reference.

master
Felix (xq) Queißner 2020-02-13 10:37:49 +01:00 committed by Andrew Kelley
parent a090a5e3bc
commit cf67d30cdc
1 changed files with 1 additions and 1 deletions

View File

@ -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