aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLars Persson2006-06-19 21:08:34 +0000
committerLars Persson2006-06-19 21:08:34 +0000
commit67d58ec4bb0f4bfc07a8eefcc2c94a44e1a6622b (patch)
tree59be20f02d500bf378e4be14dda82c7802379a19 /sound
parent3c7a5f78cc10e08b8a06e7ec504efc1f1d4beaf7 (diff)
downloadscummvm-rg350-67d58ec4bb0f4bfc07a8eefcc2c94a44e1a6622b.tar.gz
scummvm-rg350-67d58ec4bb0f4bfc07a8eefcc2c94a44e1a6622b.tar.bz2
scummvm-rg350-67d58ec4bb0f4bfc07a8eefcc2c94a44e1a6622b.zip
Added assert to audiostream allocation since failure causes serious problems
svn-id: r23184
Diffstat (limited to 'sound')
-rw-r--r--sound/audiostream.cpp2
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;
}