From 173f14be78d2386ff92cb47448b9f278e99533da Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 9 Sep 2021 12:34:36 +0200 Subject: [PATCH] gpu: [compute] don't leak driver.Device instance Signed-off-by: Elias Naur --- gpu/compute.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gpu/compute.go b/gpu/compute.go index e41a11ac..fcf1910d 100644 --- a/gpu/compute.go +++ b/gpu/compute.go @@ -1501,6 +1501,7 @@ func (g *compute) Release() { for _, a := range g.atlases { a.Release() } + g.ctx.Release() *g = compute{} }