diff options
author | Johannes Schickel | 2013-11-10 13:19:28 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-11-10 13:19:28 +0100 |
commit | 2d50ec1f3449b1fcab0c4795bef3ff8414f0d03c (patch) | |
tree | c6faa9efa270759ebaa170e59ca578a55dd5790c /engines/kyra | |
parent | af3059c114303950db592f75e38f0f83b0048b8a (diff) | |
download | scummvm-rg350-2d50ec1f3449b1fcab0c4795bef3ff8414f0d03c.tar.gz scummvm-rg350-2d50ec1f3449b1fcab0c4795bef3ff8414f0d03c.tar.bz2 scummvm-rg350-2d50ec1f3449b1fcab0c4795bef3ff8414f0d03c.zip |
KYRA: Plug memory leak in SoundTowns::playSoundEffect.
Discovered by CID #1003909.
Diffstat (limited to 'engines/kyra')
-rw-r--r-- | engines/kyra/sound_towns.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp index af741a1ebe..e4752f33de 100644 --- a/engines/kyra/sound_towns.cpp +++ b/engines/kyra/sound_towns.cpp @@ -225,6 +225,7 @@ void SoundTowns::playSoundEffect(uint8 track, uint8) { _driver->chanPanPos(_sfxChannel, 0x40); _driver->chanPitch(_sfxChannel, 0); _driver->playSoundEffect(_sfxChannel, note, 127, sfxPlaybackBuffer); + delete[] sfxPlaybackBuffer; } void SoundTowns::updateVolumeSettings() { |