mirror of https://github.com/OpenTTD/OpenTTD.git
Fix #7590: decrement allocated_size in ScriptAllocator::Free()
This commit is contained in:
parent
de73c8f91c
commit
aac4255d43
|
@ -93,6 +93,7 @@ struct ScriptAllocator {
|
|||
{
|
||||
if (p == nullptr) return;
|
||||
free(p);
|
||||
this->allocated_size -= size;
|
||||
|
||||
#ifdef SCRIPT_DEBUG_ALLOCATIONS
|
||||
assert(this->allocations.at(p) == size);
|
||||
|
|
Loading…
Reference in New Issue