From dedc910155dabcdbb1640b52a74d47f0f218b556 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Wed, 18 Jan 2023 18:06:50 +0900 Subject: [PATCH] fix: playmov would try to free null ptr when audio queue is not used --- assets/disk0/tvdos/bin/playmov.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/disk0/tvdos/bin/playmov.js b/assets/disk0/tvdos/bin/playmov.js index 513fe97..f9c0d68 100644 --- a/assets/disk0/tvdos/bin/playmov.js +++ b/assets/disk0/tvdos/bin/playmov.js @@ -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]) }