mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
app: ensure context is nil after release
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -153,7 +153,7 @@ func (w *Window) validateAndProcess(driver wm.Driver, frameStart time.Time, size
|
|||||||
}
|
}
|
||||||
w.loop, err = newLoop(w.ctx)
|
w.loop, err = newLoop(w.ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
w.ctx.Release()
|
w.destroyGPU()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user