aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/gob/script.cpp')
-rw-r--r--engines/gob/script.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/gob/script.cpp b/engines/gob/script.cpp
index 7ed27771f3..0ac9d26a9b 100644
--- a/engines/gob/script.cpp
+++ b/engines/gob/script.cpp
@@ -343,6 +343,9 @@ void Script::unloadTOT() {
if (_lomHandle >= 0)
_vm->_dataIO->closeData(_lomHandle);
+ while (!_callStack.empty())
+ pop();
+
delete[] _totData;
_totData = 0;