aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/script_eob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/script_eob.cpp')
-rw-r--r--engines/kyra/script_eob.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/kyra/script_eob.cpp b/engines/kyra/script_eob.cpp
index e5f26be210..ffdb717484 100644
--- a/engines/kyra/script_eob.cpp
+++ b/engines/kyra/script_eob.cpp
@@ -157,10 +157,10 @@ EoBInfProcessor::~EoBInfProcessor() {
delete[] _flagTable;
delete[] _stack;
delete[] _scriptData;
- for (Common::Array<const InfOpcode *>::const_iterator a = _opcodes.begin(); a != _opcodes.end(); ++a) {
- delete(*a)->proc;
+
+ for (Common::Array<const InfOpcode *>::const_iterator a = _opcodes.begin(); a != _opcodes.end(); ++a)
delete *a;
- }
+
_opcodes.clear();
}