[Scummvm-cvs-logs] SF.net SVN: scummvm:[47896] scummvm/trunk/graphics/video/avi_decoder.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Fri Feb 5 05:27:56 CET 2010
Revision: 47896
http://scummvm.svn.sourceforge.net/scummvm/?rev=47896&view=rev
Author: mthreepwood
Date: 2010-02-05 04:27:51 +0000 (Fri, 05 Feb 2010)
Log Message:
-----------
Silence a valgrind warning. The sound buffer should be created with malloc and not new[].
Modified Paths:
--------------
scummvm/trunk/graphics/video/avi_decoder.cpp
Modified: scummvm/trunk/graphics/video/avi_decoder.cpp
===================================================================
--- scummvm/trunk/graphics/video/avi_decoder.cpp 2010-02-05 04:16:12 UTC (rev 47895)
+++ scummvm/trunk/graphics/video/avi_decoder.cpp 2010-02-05 04:27:51 UTC (rev 47896)
@@ -322,7 +322,7 @@
} 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;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list