aboutsummaryrefslogtreecommitdiff
path: root/engines/chewy
diff options
context:
space:
mode:
authorFilippos Karapetis2016-10-07 03:12:00 +0300
committerFilippos Karapetis2016-10-07 03:12:00 +0300
commitcf7c010d47e8d2babdd051aaccc4b26e42468bb4 (patch)
treecfba91df0eaf320341a0d1801992725e6383ff65 /engines/chewy
parent384b61a9fbf71eeee093fc47168650b1f4bee283 (diff)
downloadscummvm-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')
-rw-r--r--engines/chewy/video/cfo_decoder.cpp2
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: