Skip to content

Commit

Permalink
Remove memory leak (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu2301 authored Nov 7, 2024
2 parents b53db4f + 43e32c6 commit 4b66e3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/chart/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};

0 comments on commit 4b66e3d

Please sign in to comment.