From 07bcd119d745f4925e32f8b39b8e09d8c38f8e64 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 3 Jun 2024 20:54:45 -0400 Subject: [PATCH] X backend uses Close method instead of Destroy to free canvas --- x/window.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/window.go b/x/window.go index 49eecd0..40ba170 100644 --- a/x/window.go +++ b/x/window.go @@ -361,7 +361,7 @@ func (this *window) reallocateCanvas () { if larger || smaller { if this.xCanvas != nil { - this.xCanvas.Destroy() + this.xCanvas.Close() } this.xCanvas = xcanvas.NewCanvasFrom(xgraphics.New ( this.backend.x,