diff options
author | Matthew Hoops | 2010-02-05 04:27:51 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-02-05 04:27:51 +0000 |
commit | 969a048619d166373d6cfccce1cc98674f6aa70a (patch) | |
tree | 293e90c7b12c526eaf2e32bb9f547003fcb98c7f | |
parent | 3b6f6bfbd84dbdd6f3a134ecce470835bc6ba446 (diff) | |
download | scummvm-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
-rw-r--r-- | graphics/video/avi_decoder.cpp | 2 |
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; |