aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/avi_decoder.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2010-02-05 04:27:51 +0000
committerMatthew Hoops2010-02-05 04:27:51 +0000
commit969a048619d166373d6cfccce1cc98674f6aa70a (patch)
tree293e90c7b12c526eaf2e32bb9f547003fcb98c7f /graphics/video/avi_decoder.cpp
parent3b6f6bfbd84dbdd6f3a134ecce470835bc6ba446 (diff)
downloadscummvm-rg350-969a048619d166373d6cfccce1cc98674f6aa70a.tar.gz
scummvm-rg350-969a048619d166373d6cfccce1cc98674f6aa70a.tar.bz2
scummvm-rg350-969a048619d166373d6cfccce1cc98674f6aa70a.zip
Silence a valgrind warning. The sound buffer should be created with malloc and not new[].
svn-id: r47896
Diffstat (limited to 'graphics/video/avi_decoder.cpp')
-rw-r--r--graphics/video/avi_decoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/video/avi_decoder.cpp b/graphics/video/avi_decoder.cpp
index 037ea6d9bf..3fb770e6bc 100644
--- a/graphics/video/avi_decoder.cpp
+++ b/graphics/video/avi_decoder.cpp
@@ -322,7 +322,7 @@ Surface *AviDecoder::getNextFrame() {
} else if (getStreamType(nextTag) == 'wb') {
// Audio Chunk
uint32 chunkSize = _fileStream->readUint32LE();
- byte *data = new byte[chunkSize];
+ byte *data = (byte *)malloc(chunkSize);
_fileStream->read(data, chunkSize);
byte flags = 0;