diff options
author | Torbjörn Andersson | 2007-04-09 19:49:03 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2007-04-09 19:49:03 +0000 |
commit | c51e87fdac4f7d78138d9343cfbfcceedc160a0f (patch) | |
tree | 79d23ab0c39fffd01f47407e372f1f4c8d2cdb91 /sound | |
parent | 5dcd53ee9fd0097d5b451004c1215ca7f4934278 (diff) | |
download | scummvm-rg350-c51e87fdac4f7d78138d9343cfbfcceedc160a0f.tar.gz scummvm-rg350-c51e87fdac4f7d78138d9343cfbfcceedc160a0f.tar.bz2 scummvm-rg350-c51e87fdac4f7d78138d9343cfbfcceedc160a0f.zip |
When the appendable audiostream is done with a queued buffer, delete it as
documented.
svn-id: r26444
Diffstat (limited to 'sound')
-rw-r--r-- | sound/audiostream.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index d0711266b1..90b7bcb26b 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -305,6 +305,7 @@ int AppendableMemoryStream<stereo, is16Bit, isUnsigned, isLE>::readBuffer(int16 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; |