authorgravatar for xq@random-projects.netFelix "xq" Queißner <xq@random-projects.net> 2020-02-13 10:37:49+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-02-13 16:19:34-05:00
logcf67d30cdcdd46264e59184ff6a1bf9062a77878
tree1f233284830c6a9d47097a56fad5248c69906111
parenta090a5e3bcf242e8ed69346d9762d9c2fab6059a

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


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/heap.zig+1-1
...@@ -533,7 +533,7 @@ pub const ArenaAllocator = struct {...@@ -533,7 +533,7 @@ pub const ArenaAllocator = struct {
533 };533 };
534 }534 }
535535
536 pub fn deinit(self: *ArenaAllocator) void {536 pub fn deinit(self: ArenaAllocator) void {
537 var it = self.buffer_list.first;537 var it = self.buffer_list.first;
538 while (it) |node| {538 while (it) |node| {
539 // this has to occur before the free because the free frees node539 // this has to occur before the free because the free frees node