aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2010-11-09 18:38:35 +0000
committerMatthew Hoops2010-11-09 18:38:35 +0000
commita4978587d8bbb6ba401b48ca0e3f24e443c5a0d2 (patch)
tree1d2ee8b47865830b4514a8c2cc6f210e50c20f8f /engines
parent55f0b88c07f02eb2fcdeb5284131acd10e13eee8 (diff)
downloadscummvm-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')
-rw-r--r--engines/mohawk/riven_scripts.cpp5
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)