forked from joejulian/gio
gpu: [compute] don't leak driver.Device instance
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -1501,6 +1501,7 @@ func (g *compute) Release() {
|
||||
for _, a := range g.atlases {
|
||||
a.Release()
|
||||
}
|
||||
g.ctx.Release()
|
||||
*g = compute{}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user