diff options
author | Travis Howell | 2006-04-24 01:14:28 +0000 |
---|---|---|
committer | Travis Howell | 2006-04-24 01:14:28 +0000 |
commit | ea3cdb1ed4b7020acaf18579b9bbfe50af2599c6 (patch) | |
tree | 5bfd0ab2209e0fc5131db406048d5666332bc10b /engines | |
parent | b1bc5f059e29ebc0994133dde869ead162a1f883 (diff) | |
download | scummvm-rg350-ea3cdb1ed4b7020acaf18579b9bbfe50af2599c6.tar.gz scummvm-rg350-ea3cdb1ed4b7020acaf18579b9bbfe50af2599c6.tar.bz2 scummvm-rg350-ea3cdb1ed4b7020acaf18579b9bbfe50af2599c6.zip |
Fix sound memory leak
svn-id: r22127
Diffstat (limited to 'engines')
-rw-r--r-- | engines/simon/animation.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/simon/animation.cpp b/engines/simon/animation.cpp index 26bf873f71..4df1d8bb11 100644 --- a/engines/simon/animation.cpp +++ b/engines/simon/animation.cpp @@ -29,6 +29,7 @@ #include "simon/intern.h" #include "simon/simon.h" +#include "sound/audiostream.h" #include "sound/wave.h" @@ -152,7 +153,7 @@ void MoviePlayer::play() { } } - if (_leftButtonDown && _rightButtonDown && !_vm->getBitFlag(40)) { + if (_leftButtonDown && _rightButtonDown && !_vm->getBitFlag(41)) { _frameNum = _framesCount; } } @@ -172,6 +173,9 @@ void MoviePlayer::close() { _fd.close(); free(_frameBuffer1); free(_frameBuffer2); + + _mixer->stopHandle(_bgSound); + free(_bgSoundStream); } void MoviePlayer::decodeZlib(uint8 *data, int size, int totalSize) { |