mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-23 23:22:18 +00:00
[xmly] chore: remember to free after work
This commit is contained in:
parent
e8b220b3df
commit
1cdd68e448
@ -52,6 +52,7 @@ export class XimalayaPCDecipher implements DecipherInstance {
|
|||||||
const encryptedAudioPart = buffer.slice(encryptedHeaderOffset, plainAudioDataOffset);
|
const encryptedAudioPart = buffer.slice(encryptedHeaderOffset, plainAudioDataOffset);
|
||||||
const encryptedAudioPartLen = xm.decrypt(encryptedAudioPart);
|
const encryptedAudioPartLen = xm.decrypt(encryptedAudioPart);
|
||||||
const audioSize = audioHeader.byteLength + encryptedAudioPartLen + plainAudioDataLength;
|
const audioSize = audioHeader.byteLength + encryptedAudioPartLen + plainAudioDataLength;
|
||||||
|
xm.free();
|
||||||
|
|
||||||
const result = new Uint8Array(audioSize);
|
const result = new Uint8Array(audioSize);
|
||||||
result.set(audioHeader);
|
result.set(audioHeader);
|
||||||
|
Loading…
Reference in New Issue
Block a user