public override void Dispose() { if (Canvas != null) { Canvas.Dispose(); Canvas.Skin.Dispose(); Canvas.Skin.DefaultFont.Dispose(); Canvas.Renderer.Dispose(); Canvas = null; } base.Dispose(); }