Skip to content

Commit ba1e34e

Browse files
committed
app: [X11] add missing check for destroyed window
Fixes: https://todo.sr.ht/~eliasnaur/gio/577 Signed-off-by: Elias Naur <[email protected]>
1 parent 0deb7b3 commit ba1e34e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/os_x11.go

+3
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,9 @@ func (w *x11Window) dispatch() {
479479
switch {
480480
case *xEvents&syscall.POLLIN != 0:
481481
syn = w.handler.handleEvents()
482+
if w.x == nil {
483+
return
484+
}
482485
case *xEvents&(syscall.POLLERR|syscall.POLLHUP) != 0:
483486
}
484487
}

0 commit comments

Comments
 (0)