diff options
author | Eugene Sandulenko | 2016-11-10 23:01:00 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-11-10 23:01:00 +0100 |
commit | f7e01073077d7444a58d4ef770e202dafacf2740 (patch) | |
tree | 3970d5b28618281211bcd0675c048ace32552461 /engines/director/lingo | |
parent | faaa1a6b1f473955039fe88c127f496f4824434e (diff) | |
download | scummvm-rg350-f7e01073077d7444a58d4ef770e202dafacf2740.tar.gz scummvm-rg350-f7e01073077d7444a58d4ef770e202dafacf2740.tar.bz2 scummvm-rg350-f7e01073077d7444a58d4ef770e202dafacf2740.zip |
DIRECTOR: Plug several leaks
Diffstat (limited to 'engines/director/lingo')
-rw-r--r-- | engines/director/lingo/lingo-code.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/director/lingo/lingo-code.cpp b/engines/director/lingo/lingo-code.cpp index 37a333ba10..dd5977673e 100644 --- a/engines/director/lingo/lingo-code.cpp +++ b/engines/director/lingo/lingo-code.cpp @@ -729,6 +729,8 @@ void Lingo::c_repeatwithcode(void) { if (!g_lingo->_returning) g_lingo->_pc = end; /* next stmt */ + + delete counter; } void Lingo::c_exitRepeat(void) { @@ -972,6 +974,8 @@ void Lingo::c_global() { s->global = true; g_lingo->_pc += g_lingo->calcStringAlignment(name.c_str()); + + delete s; } void Lingo::c_instance() { |