mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fixed offset of block in Free()
with _DEBUG_MEMBLOCK
This commit is contained in:
parent
8af202bd5f
commit
f949f1e88d
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ template<typename a, size_t b>
|
|||
void MEM_BlockAlloc<a, b>::Free(void *ptr) noexcept
|
||||
{
|
||||
#if _DEBUG_MEMBLOCK
|
||||
block_s<a, b> *block = (block_s<a, b> *)ptr;
|
||||
block_t *block = (block_t*)ptr - offsetof(block_t, data);
|
||||
|
||||
LL_SafeRemoveRoot(m_Block, block, next_block, prev_block);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue