commit d38b2012c88cd6a3ab2cda5f6b34b2fed4302cb3 parent e2011ebed72d891ccddfa5863e370ceb5ba8267c Author: hhvn <dev@hhvn.uk> Date: Sat, 30 Dec 2023 16:23:49 +0000 Prevent memory leak in X server due to not calling xgr.Destroy() Diffstat:
M | drw/x.go | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/drw/x.go b/drw/x.go @@ -107,6 +107,7 @@ func (w *Window) Paint(i image.Image) { xgr.XSurfaceSet(w.id) xgr.XDraw() xgr.XPaint(w.id) + xgr.Destroy() } func (w *Window) Destroy() {