VIDEO: Fix mismatched new[]/free
This commit is contained in:
parent
82ed30817d
commit
7c28d22ca0
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ void BinkDecoder::audioPacket(AudioTrack &audio) {
|
||||||
|
|
||||||
int outSize = audio.frameLen * audio.channels;
|
int outSize = audio.frameLen * audio.channels;
|
||||||
while (audio.bits->pos() < audio.bits->size()) {
|
while (audio.bits->pos() < audio.bits->size()) {
|
||||||
int16 *out = new int16[outSize];
|
int16 *out = (int16 *)malloc(outSize * 2);
|
||||||
memset(out, 0, outSize * 2);
|
memset(out, 0, outSize * 2);
|
||||||
|
|
||||||
audioBlock(audio, out);
|
audioBlock(audio, out);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue