From d53c92791f34892c82751e48fc71566af2a777d5 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 4 Jul 2020 16:34:32 +0200 Subject: [PATCH] app/headless: don't release context while it's current Updates gio#144 Signed-off-by: Elias Naur --- app/headless/headless.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/headless/headless.go b/app/headless/headless.go index b451cde8..385842e4 100644 --- a/app/headless/headless.go +++ b/app/headless/headless.go @@ -96,12 +96,12 @@ func (w *Window) Release() { w.gpu.Release() w.gpu = nil } - if w.ctx != nil { - w.ctx.Release() - w.ctx = nil - } return nil }) + if w.ctx != nil { + w.ctx.Release() + w.ctx = nil + } } // Frame replace the window content and state with the