diff options
Diffstat (limited to 'engines/wintermute/base')
-rw-r--r-- | engines/wintermute/base/scriptables/debuggable/debuggable_script.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/wintermute/base/scriptables/debuggable/debuggable_script.cpp b/engines/wintermute/base/scriptables/debuggable/debuggable_script.cpp index cfecc28d4f..5a2291894f 100644 --- a/engines/wintermute/base/scriptables/debuggable/debuggable_script.cpp +++ b/engines/wintermute/base/scriptables/debuggable/debuggable_script.cpp @@ -130,6 +130,7 @@ void DebuggableScript::updateWatches() { Watch *findMe = _watchInstances[i]->_watch; if (Common::find(_engine->_watches.begin(), _engine->_watches.end(), findMe) == _engine->_watches.end()) { // Not found on engine-wide list, must have been removed from watches. Must remove it from local list. + delete _watchInstances[i]; _watchInstances.remove_at(i); } } |