Skip to content

Commit

Permalink
DIRECTOR: Lingo: Don't leak memory on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Mar 10, 2017
1 parent 2506f61 commit 0a59d0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/director/lingo/lingo.cpp
Expand Up @@ -319,6 +319,9 @@ void Lingo::restartLingo() {
warning("STUB: restartLingo()");

for (int i = 0; i <= kMaxScriptType; i++) {
for (ScriptHash::iterator it = _scripts[i].begin(); it != _scripts[i].end(); ++it)
delete it->_value;

_scripts[i].clear();
}

Expand Down

0 comments on commit 0a59d0a

Please sign in to comment.