Skip to content

Commit

Permalink
app: reset Window when DestroyEvent is received
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnaur committed Jun 27, 2024
1 parent 8fb6d3d commit 42357a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ func (w *Window) processEvent(e event.Event) bool {
case DestroyEvent:
w.destroyGPU()
w.driver = nil
w.basic = nil
if q := w.timer.quit; q != nil {
q <- struct{}{}
<-q
Expand Down

0 comments on commit 42357a2

Please sign in to comment.