From 10d7210ff005678ead3084d722eee8f7807cc9a1 Mon Sep 17 00:00:00 2001 From: copygirl Date: Wed, 16 Nov 2022 22:14:33 +0100 Subject: [PATCH] Fix big memory leak in TempAllocator --- src/gaemstone/Utility/Allocators.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gaemstone/Utility/Allocators.cs b/src/gaemstone/Utility/Allocators.cs index cff406a..5aa3eeb 100644 --- a/src/gaemstone/Utility/Allocators.cs +++ b/src/gaemstone/Utility/Allocators.cs @@ -63,7 +63,7 @@ public static class TempAllocator : IAllocator , IDisposable { - private readonly ArenaAllocator _allocator = new(Capacity); + private readonly ArenaAllocator _allocator; private readonly int _start; public ResetOnDispose(ArenaAllocator allocator, int start)