Skip to content

Commit

Permalink
CHEWY: Use new instead of malloc() in the CFO video decoder
Browse files Browse the repository at this point in the history
Thanks to wjp for noticing this
  • Loading branch information
bluegr committed Oct 7, 2016
1 parent 384b61a commit cf7c010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/chewy/video/cfo_decoder.cpp
Expand Up @@ -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:
Expand Down

0 comments on commit cf7c010

Please sign in to comment.