[Scummvm-cvs-logs] SF.net SVN: scummvm: [26444] scummvm/trunk/sound/audiostream.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Mon Apr 9 21:49:04 CEST 2007
Revision: 26444
http://scummvm.svn.sourceforge.net/scummvm/?rev=26444&view=rev
Author: eriktorbjorn
Date: 2007-04-09 12:49:03 -0700 (Mon, 09 Apr 2007)
Log Message:
-----------
When the appendable audiostream is done with a queued buffer, delete it as
documented.
Modified Paths:
--------------
scummvm/trunk/sound/audiostream.cpp
Modified: scummvm/trunk/sound/audiostream.cpp
===================================================================
--- scummvm/trunk/sound/audiostream.cpp 2007-04-09 19:47:23 UTC (rev 26443)
+++ scummvm/trunk/sound/audiostream.cpp 2007-04-09 19:49:03 UTC (rev 26444)
@@ -305,6 +305,7 @@
assert(buf.start <= _pos && _pos <= buf.end);
const int samplesLeftInCurBuffer = buf.end - _pos;
if (samplesLeftInCurBuffer == 0) {
+ delete [] buf.start;
_bufferQueue.erase(_bufferQueue.begin());
_pos = 0;
continue;
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