From f5cd4f0df6a5c380a443fd863c0a7b452d18e443 Mon Sep 17 00:00:00 2001 From: Grigory Date: Thu, 7 Nov 2024 15:51:25 +0300 Subject: [PATCH] Remove memory leak --- src/chart/session.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chart/session.js b/src/chart/session.js index 49d56a2..d2e0ab2 100644 --- a/src/chart/session.js +++ b/src/chart/session.js @@ -545,6 +545,7 @@ module.exports = (client) => class ChartSession { if (this.#replayMode) this.#client.send('replay_delete_session', [this.#replaySessionID]); this.#client.send('chart_delete_session', [this.#chartSessionID]); delete this.#client.sessions[this.#chartSessionID]; + delete this.#client.sessions[this.#replaySessionID]; this.#replayMode = false; } };