X backend uses Close method instead of Destroy to free canvas
This commit is contained in:
parent
c51ce65c88
commit
a01c2c9206
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user