mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 11:51:49 +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()
|
||||
|
||||
sys.free(ipfbuf)
|
||||
if (audioQueue) {
|
||||
if (AUDIO_QUEUE_BYTES > 0 && AUDIO_QUEUE_LENGTH > 1) {
|
||||
for (let i = 0; i < AUDIO_QUEUE_LENGTH; i++) {
|
||||
sys.free(audioQueue[i])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user