fix: fixes releasing hit canvas on Layer destroy

This commit is contained in:
Dmitry Zarva 2022-11-07 15:02:15 +03:00
parent c4c7c6c60b
commit 0f00aa9401

View File

@ -469,7 +469,7 @@ export class Layer extends Container<Group | Shape> {
} }
destroy(): this { destroy(): this {
Util.releaseCanvas(this.getNativeCanvasElement(), this.getCanvas()._canvas); Util.releaseCanvas(this.getNativeCanvasElement(), this.getHitCanvas()._canvas);
return super.destroy(); return super.destroy();
} }