diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/audiostream.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/audiostream.cpp b/sound/audiostream.cpp index 2f8a5e0d4c..e0b079ef2c 100644 --- a/sound/audiostream.cpp +++ b/sound/audiostream.cpp @@ -261,6 +261,8 @@ AppendableMemoryStream<stereo, is16Bit, isUnsigned, isLE>::AppendableMemoryStrea assert((bufferSize & 1) == 0); _bufferStart = (byte *)malloc(bufferSize); + assert(_bufferStart != NULL); + _pos = _end = _bufferStart; _bufferEnd = _bufferStart + bufferSize; } |