diff options
author | Filippos Karapetis | 2015-12-19 12:41:50 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:35:29 +0100 |
commit | 406710bac6ecd0586ab450aea45e3e97e9012b85 (patch) | |
tree | fbfb5a75811cf33cbea668dd11c9753b116f756c | |
parent | 11d16bb34fe9f76e51efa2bdb96306ab340f4ca1 (diff) | |
download | scummvm-rg350-406710bac6ecd0586ab450aea45e3e97e9012b85.tar.gz scummvm-rg350-406710bac6ecd0586ab450aea45e3e97e9012b85.tar.bz2 scummvm-rg350-406710bac6ecd0586ab450aea45e3e97e9012b85.zip |
LAB: Plug a memory leak in the sound effects code
-rw-r--r-- | engines/lab/music.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/lab/music.cpp b/engines/lab/music.cpp index 38ecba3a4c..4176188fb9 100644 --- a/engines/lab/music.cpp +++ b/engines/lab/music.cpp @@ -120,7 +120,7 @@ void Music::playSoundEffect(uint16 sampleSpeed, uint32 length, Common::File *dat byte *soundData = (byte *)malloc(length); dataFile->read(soundData, length); - Audio::SeekableAudioStream *audioStream = Audio::makeRawStream((const byte *)soundData, length, sampleSpeed, soundFlags, DisposeAfterUse::NO); + Audio::SeekableAudioStream *audioStream = Audio::makeRawStream((const byte *)soundData, length, sampleSpeed, soundFlags); uint loops = (_loopSoundEffect) ? 0 : 1; Audio::LoopingAudioStream *loopingAudioStream = new Audio::LoopingAudioStream(audioStream, loops); _vm->_mixer->playStream(Audio::Mixer::kSFXSoundType, &_sfxHandle, loopingAudioStream); |