diff --git a/internal/shareable/shareable.go b/internal/shareable/shareable.go index 064705a608f0..d07788cc09e7 100644 --- a/internal/shareable/shareable.go +++ b/internal/shareable/shareable.go @@ -54,6 +54,7 @@ func (b *backend) TryAlloc(width, height int) (*packing.Node, bool) { } nExtended++ if n := page.Alloc(width, height); n != nil { + page.Free(n) break } }