Skip to content

Commit bb5d61f

Browse files
authored
Merge pull request #4659 from SvanT/dispose-blink-state-manager
Dispose blink state manager
2 parents 1b4460e + 3b30123 commit bb5d61f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/xterm-addon-webgl/src/WebglRenderer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ export class WebglRenderer extends Disposable implements IRenderer {
365365
private _updateCursorBlink(): void {
366366
if (this._terminal.options.cursorBlink) {
367367
if (!this._cursorBlinkStateManager) {
368-
this._cursorBlinkStateManager = new CursorBlinkStateManager(() => {
368+
this._cursorBlinkStateManager = this.register(new CursorBlinkStateManager(() => {
369369
this._requestRedrawCursor();
370-
}, this._coreBrowserService);
370+
}, this._coreBrowserService));
371371
}
372372
} else {
373373
this._cursorBlinkStateManager?.dispose();

0 commit comments

Comments
 (0)