mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-26 06:48:46 +01:00
cleanup: fix leak
This commit is contained in:
parent
98f795a7d2
commit
09746b5253
@ -115,7 +115,7 @@ void mixer_op_downmix(mixer_t* mixer, int32_t sample_count, mix_op_t* op) {
|
|||||||
sbuf_tmp[ch] = sbuf[ch]; /* copy untouched channels */
|
sbuf_tmp[ch] = sbuf[ch]; /* copy untouched channels */
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int ch = op->ch_dst; ch < max_channels; ch++) {
|
for (int ch = op->ch_dst; ch < max_channels - 1; ch++) {
|
||||||
sbuf_tmp[ch] = sbuf[ch + 1]; /* 'pull' dropped channels back */
|
sbuf_tmp[ch] = sbuf[ch + 1]; /* 'pull' dropped channels back */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user