aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/script_func.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/toon/script_func.cpp')
-rw-r--r--engines/toon/script_func.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/toon/script_func.cpp b/engines/toon/script_func.cpp
index 4c30b1530a..3b21d1def5 100644
--- a/engines/toon/script_func.cpp
+++ b/engines/toon/script_func.cpp
@@ -224,8 +224,9 @@ ScriptFunc::ScriptFunc(ToonEngine *vm) {
ScriptFunc::~ScriptFunc(void) {
while(!_opcodes.empty()) {
- //delete _opcodes.end();
+ const OpcodeV2 *temp = _opcodes.back();
_opcodes.pop_back();
+ delete temp;
}
}