diff options
author | Matthew Hoops | 2010-11-09 18:38:35 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-11-09 18:38:35 +0000 |
commit | a4978587d8bbb6ba401b48ca0e3f24e443c5a0d2 (patch) | |
tree | 1d2ee8b47865830b4514a8c2cc6f210e50c20f8f /engines/mohawk | |
parent | 55f0b88c07f02eb2fcdeb5284131acd10e13eee8 (diff) | |
download | scummvm-rg350-a4978587d8bbb6ba401b48ca0e3f24e443c5a0d2.tar.gz scummvm-rg350-a4978587d8bbb6ba401b48ca0e3f24e443c5a0d2.tar.bz2 scummvm-rg350-a4978587d8bbb6ba401b48ca0e3f24e443c5a0d2.zip |
MOHAWK: Fix memory leaks (thanks to digitall for finding)
svn-id: r54164
Diffstat (limited to 'engines/mohawk')
-rw-r--r-- | engines/mohawk/riven_scripts.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp index 49ab260fb9..e70de75bd2 100644 --- a/engines/mohawk/riven_scripts.cpp +++ b/engines/mohawk/riven_scripts.cpp @@ -344,6 +344,11 @@ void RivenScript::playScriptSLST(uint16 op, uint16 argc, uint16 *argv) { // Play the requested sound list _vm->_sound->playSLST(slstRecord); _vm->_activatedSLST = true; + + delete[] slstRecord.sound_ids; + delete[] slstRecord.volumes; + delete[] slstRecord.balances; + delete[] slstRecord.u2; } // Command 4: play local tWAV resource (twav_id, volume, block) |