From: Mikko Rasa Date: Fri, 31 Jan 2025 21:00:34 +0000 (+0200) Subject: Use the aligned form of operator delete X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=aea25eecd2dfb645dd0c0de74dde2e38bdfc7f00;p=libs%2Fgame.git Use the aligned form of operator delete By the language spec the form of new and delete must match --- 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()