Skip to content

Commit

Permalink
#2258 dispose editor listeners on 'TextEditorMain' dispose
Browse files Browse the repository at this point in the history
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
  • Loading branch information
evidolob committed Aug 2, 2018
1 parent 3ef537c commit 640df65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/plugin-ext/src/main/browser/text-editor-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ export class TextEditorMain {
}

dispose(): void {
delete this.model;
this.modelListeners.dispose();
delete this.model;

this.editorListeners.dispose();
delete this.editor;
}

Expand Down

0 comments on commit 640df65

Please sign in to comment.