mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-10 15:04:03 +09:00
fix: playmov would try to free null ptr when audio queue is not used
This commit is contained in:
@@ -314,7 +314,7 @@ finally {
|
|||||||
let endTime = sys.nanoTime()
|
let endTime = sys.nanoTime()
|
||||||
|
|
||||||
sys.free(ipfbuf)
|
sys.free(ipfbuf)
|
||||||
if (audioQueue) {
|
if (AUDIO_QUEUE_BYTES > 0 && AUDIO_QUEUE_LENGTH > 1) {
|
||||||
for (let i = 0; i < AUDIO_QUEUE_LENGTH; i++) {
|
for (let i = 0; i < AUDIO_QUEUE_LENGTH; i++) {
|
||||||
sys.free(audioQueue[i])
|
sys.free(audioQueue[i])
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user