mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
gpu/headless: plug resource leaks in tests
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -212,6 +212,7 @@ func newDriver(t *testing.T) driver.Device {
|
||||
b.BeginFrame(nil, true, image.Pt(1, 1))
|
||||
t.Cleanup(func() {
|
||||
b.EndFrame()
|
||||
b.Release()
|
||||
ctx.ReleaseCurrent()
|
||||
runtime.UnlockOSThread()
|
||||
ctx.Release()
|
||||
|
||||
Reference in New Issue
Block a user