From b29b776e9fad939bedcd776116100be6a7b443c5 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 14 Oct 2020 11:25:49 +0200 Subject: [PATCH] fix olm session cache being leaked when closing session --- src/matrix/e2ee/RoomEncryption.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/matrix/e2ee/RoomEncryption.js b/src/matrix/e2ee/RoomEncryption.js index 69a93e57..bc17fa09 100644 --- a/src/matrix/e2ee/RoomEncryption.js +++ b/src/matrix/e2ee/RoomEncryption.js @@ -377,6 +377,8 @@ export class RoomEncryption { dispose() { this._disposed = true; + this._megolmBackfillCache.dispose(); + this._megolmSyncCache.dispose(); } }