We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ce3ef commit 8b42244Copy full SHA for 8b42244
addons/xterm-addon-canvas/src/BaseRenderLayer.ts
@@ -386,6 +386,7 @@ export abstract class BaseRenderLayer extends Disposable implements IRenderLayer
386
// something is wrong with either the lifecycle of _bitmapGenerator or the page canvases are
387
// swapped out unexpectedly
388
if (this._bitmapGenerator[glyph.texturePage] && this._charAtlas.pages[glyph.texturePage].canvas !== this._bitmapGenerator[glyph.texturePage]!.canvas) {
389
+ this._bitmapGenerator[glyph.texturePage]?.bitmap?.close();
390
delete this._bitmapGenerator[glyph.texturePage];
391
}
392
0 commit comments