summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/script/squirrel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp
index ea63944ea..275a89c74 100644
--- a/src/script/squirrel.cpp
+++ b/src/script/squirrel.cpp
@@ -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);