diff options
author | Max Horn | 2003-01-12 01:15:37 +0000 |
---|---|---|
committer | Max Horn | 2003-01-12 01:15:37 +0000 |
commit | 47fe35819a394e84fc42227cf2c4757003bb1ae9 (patch) | |
tree | 625bb62df78175741ef5c70751fcb91ddca5d395 | |
parent | 727399ad0e846bf41d20a52ecded39a83fe10e11 (diff) | |
download | scummvm-rg350-47fe35819a394e84fc42227cf2c4757003bb1ae9.tar.gz scummvm-rg350-47fe35819a394e84fc42227cf2c4757003bb1ae9.tar.bz2 scummvm-rg350-47fe35819a394e84fc42227cf2c4757003bb1ae9.zip |
don't leak memory each time a smush movie is played in V8 (this also fixes skipping cutscenes)
svn-id: r6410
-rw-r--r-- | scumm/script_v8.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp index d287871447..a24fb913ea 100644 --- a/scumm/script_v8.cpp +++ b/scumm/script_v8.cpp @@ -1314,6 +1314,9 @@ void Scumm_v8::o8_startVideo() SmushPlayer * sp = new SmushPlayer(sr); sp->play((char*)_scriptPointer, getGameDataPath()); + delete sp; + delete sr; + _scriptPointer += len + 1; } |