[Scummvm-cvs-logs] SF.net SVN: scummvm: [22127] scummvm/trunk/engines/simon/animation.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Sun Apr 23 18:15:06 CEST 2006
Revision: 22127
Author: kirben
Date: 2006-04-23 18:14:28 -0700 (Sun, 23 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22127&view=rev
Log Message:
-----------
Fix sound memory leak
Modified Paths:
--------------
scummvm/trunk/engines/simon/animation.cpp
Modified: scummvm/trunk/engines/simon/animation.cpp
===================================================================
--- scummvm/trunk/engines/simon/animation.cpp 2006-04-23 23:27:51 UTC (rev 22126)
+++ scummvm/trunk/engines/simon/animation.cpp 2006-04-24 01:14:28 UTC (rev 22127)
@@ -29,6 +29,7 @@
#include "simon/intern.h"
#include "simon/simon.h"
+#include "sound/audiostream.h"
#include "sound/wave.h"
@@ -152,7 +153,7 @@
}
}
- if (_leftButtonDown && _rightButtonDown && !_vm->getBitFlag(40)) {
+ if (_leftButtonDown && _rightButtonDown && !_vm->getBitFlag(41)) {
_frameNum = _framesCount;
}
}
@@ -172,6 +173,9 @@
_fd.close();
free(_frameBuffer1);
free(_frameBuffer2);
+
+ _mixer->stopHandle(_bgSound);
+ free(_bgSoundStream);
}
void MoviePlayer::decodeZlib(uint8 *data, int size, int totalSize) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list