From aea25eecd2dfb645dd0c0de74dde2e38bdfc7f00 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 31 Jan 2025 23:00:34 +0200 Subject: [PATCH] Use the aligned form of operator delete By the language spec the form of new and delete must match --- source/game/pool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/game/pool.cpp b/source/game/pool.cpp index d53a2e0..2a61f2d 100644 --- a/source/game/pool.cpp +++ b/source/game/pool.cpp @@ -80,8 +80,8 @@ void PoolBase::destroy_all() unsigned block_count = capacity/BLOCK_SIZE; for(unsigned i=0; i(BLOCK_ALIGNMENT)); + ::operator delete(blocks, static_cast(alignof(char *))); } void *PoolBase::prepare_allocate() -- 2.45.2