From 6ad7be87266885a215ececd373624eb0bb4cad03 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 14 Oct 2020 11:34:34 +0200 Subject: [PATCH] fix leaking left panel view model after closing session --- src/domain/session/SessionViewModel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/domain/session/SessionViewModel.js b/src/domain/session/SessionViewModel.js index 38a36e8c..de110fa1 100644 --- a/src/domain/session/SessionViewModel.js +++ b/src/domain/session/SessionViewModel.js @@ -31,9 +31,9 @@ export class SessionViewModel extends ViewModel { reconnector: sessionContainer.reconnector, session: sessionContainer.session, }))); - this._leftPanelViewModel = new LeftPanelViewModel(this.childOptions({ + this._leftPanelViewModel = this.track(new LeftPanelViewModel(this.childOptions({ rooms: this._sessionContainer.session.rooms - })); + }))); this._currentRoomViewModel = null; this._gridViewModel = null; this._setupNavigation();