diff options
author | Filippos Karapetis | 2016-10-07 03:12:00 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-10-07 03:12:00 +0300 |
commit | cf7c010d47e8d2babdd051aaccc4b26e42468bb4 (patch) | |
tree | cfba91df0eaf320341a0d1801992725e6383ff65 /engines/chewy/video | |
parent | 384b61a9fbf71eeee093fc47168650b1f4bee283 (diff) | |
download | scummvm-rg350-cf7c010d47e8d2babdd051aaccc4b26e42468bb4.tar.gz scummvm-rg350-cf7c010d47e8d2babdd051aaccc4b26e42468bb4.tar.bz2 scummvm-rg350-cf7c010d47e8d2babdd051aaccc4b26e42468bb4.zip |
CHEWY: Use new instead of malloc() in the CFO video decoder
Thanks to wjp for noticing this
Diffstat (limited to 'engines/chewy/video')
-rw-r--r-- | engines/chewy/video/cfo_decoder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/chewy/video/cfo_decoder.cpp b/engines/chewy/video/cfo_decoder.cpp index 18fc6ea375..94363dc1be 100644 --- a/engines/chewy/video/cfo_decoder.cpp +++ b/engines/chewy/video/cfo_decoder.cpp @@ -209,7 +209,7 @@ void CfoDecoder::CfoVideoTrack::handleCustomFrame() { delete[] _soundEffects[number]; _soundEffectSize[number] = frameSize - 2; - _soundEffects[number] = (byte *)malloc(frameSize - 2); + _soundEffects[number] = new byte[frameSize - 2]; _fileStream->read(_soundEffects[number], frameSize - 2); break; case kChunkPlayMusic: |