aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/audiostream.cpp1
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;