VIDEO: Fix mismatched new[]/free

This commit is contained in:
Matthew Hoops 2011-07-02 19:37:46 -04:00
parent 82ed30817d
commit 7c28d22ca0

View file

@ -243,7 +243,7 @@ void BinkDecoder::audioPacket(AudioTrack &audio) {
int outSize = audio.frameLen * audio.channels;
while (audio.bits->pos() < audio.bits->size()) {
int16 *out = new int16[outSize];
int16 *out = (int16 *)malloc(outSize * 2);
memset(out, 0, outSize * 2);
audioBlock(audio, out);