MOHAWK: Fix memory leaks (thanks to digitall for finding)

svn-id: r54164
This commit is contained in:
Matthew Hoops 2010-11-09 18:38:35 +00:00
parent 55f0b88c07
commit a4978587d8

View File

@ -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)