From 7c28d22ca01e3479532d06b5c4c8f3b9fe299ee4 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sat, 2 Jul 2011 19:37:46 -0400 Subject: [PATCH] VIDEO: Fix mismatched new[]/free --- video/bink_decoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/bink_decoder.cpp b/video/bink_decoder.cpp index 5ed4011b613..e8d7adfd2fa 100644 --- a/video/bink_decoder.cpp +++ b/video/bink_decoder.cpp @@ -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);