From 4cd56d6f9386d7b8f6618c875f0b867935f6f9a6 Mon Sep 17 00:00:00 2001 From: Max Wu Date: Sun, 12 Jan 2025 10:48:17 +0800 Subject: [PATCH] fix: release awareness after use to avoid memory leak (#12) --- src/protocol.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/protocol.js b/src/protocol.js index 3608a82..f26a042 100644 --- a/src/protocol.js +++ b/src/protocol.js @@ -83,6 +83,8 @@ export const mergeMessages = messages => { ) ) })) + // release awareness after use to avoid memory leak + aw.destroy() return result }