aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorRichieSams2013-09-07 18:05:47 -0500
committerRichieSams2013-09-07 18:05:47 -0500
commit81184d342c6c03932d4c9c4620302283a09273be (patch)
tree6f21f91e633e270c3c1b440a17399c4907c530e9 /engines/zvision
parentacfa7ff3e11bf9024451a6e3505f5f07d5646e1f (diff)
downloadscummvm-rg350-81184d342c6c03932d4c9c4620302283a09273be.tar.gz
scummvm-rg350-81184d342c6c03932d4c9c4620302283a09273be.tar.bz2
scummvm-rg350-81184d342c6c03932d4c9c4620302283a09273be.zip
ZVISION: Delete a Control * when removing it from _activeControls
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/script_manager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp
index 0af1ff131a..f499adaa44 100644
--- a/engines/zvision/script_manager.cpp
+++ b/engines/zvision/script_manager.cpp
@@ -108,6 +108,7 @@ void ScriptManager::updateNodes(uint deltaTimeMillis) {
// If process() returns true, it means the node can be deleted
for (Common::List<Control *>::iterator iter = _activeControls.begin(); iter != _activeControls.end();) {
if ((*iter)->process(deltaTimeMillis)) {
+ delete (*iter);
// Remove the node
iter = _activeControls.erase(iter);
} else {