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);