From 1cdd68e448a8a3a0e50338e35de3d41d5c944ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Wed, 18 Sep 2024 23:30:04 +0100 Subject: [PATCH] [xmly] chore: remember to free after work --- src/decrypt-worker/decipher/Ximalaya.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/decrypt-worker/decipher/Ximalaya.ts b/src/decrypt-worker/decipher/Ximalaya.ts index fae3734..17edc4c 100644 --- a/src/decrypt-worker/decipher/Ximalaya.ts +++ b/src/decrypt-worker/decipher/Ximalaya.ts @@ -52,6 +52,7 @@ export class XimalayaPCDecipher implements DecipherInstance { const encryptedAudioPart = buffer.slice(encryptedHeaderOffset, plainAudioDataOffset); const encryptedAudioPartLen = xm.decrypt(encryptedAudioPart); const audioSize = audioHeader.byteLength + encryptedAudioPartLen + plainAudioDataLength; + xm.free(); const result = new Uint8Array(audioSize); result.set(audioHeader);