diff options
| author | hhvn <dev@hhvn.uk> | 2023-12-30 16:23:49 +0000 |
|---|---|---|
| committer | hhvn <dev@hhvn.uk> | 2023-12-30 16:23:49 +0000 |
| commit | d38b2012c88cd6a3ab2cda5f6b34b2fed4302cb3 (patch) | |
| tree | d45a5a5fb2bc91833b3868c706605a44a938dbe4 /drw/x.go | |
| parent | e2011ebed72d891ccddfa5863e370ceb5ba8267c (diff) | |
Prevent memory leak in X server due to not calling xgr.Destroy()
Diffstat (limited to 'drw/x.go')
| -rw-r--r-- | drw/x.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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() { |