mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
MOHAWK: Fix memory leaks (thanks to digitall for finding)
svn-id: r54164
This commit is contained in:
parent
55f0b88c07
commit
a4978587d8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user