diff options
-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; |