From cc512a76e3c9a6ea7ca26ce0ecd7536c6e35b666 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 12 Oct 2023 11:06:08 +0800 Subject: [PATCH] ... --- src/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory.cpp b/src/memory.cpp index 15118817..cd75a9bc 100644 --- a/src/memory.cpp +++ b/src/memory.cpp @@ -226,8 +226,8 @@ struct MemoryPool{ PK_GLOBAL_SCOPE_LOCK(); _arenas.apply([this](Arena* arena){ if(arena->full()){ - delete arena; _arenas.erase(arena); + delete arena; } }); }