mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 05:20:29 +00:00
macos: verify inspector is not nil before sending it to draw
This commit is contained in:
@@ -426,6 +426,10 @@ extension Ghostty {
|
||||
return
|
||||
}
|
||||
|
||||
// If the inspector is nil, then our surface is freed and it is unsafe
|
||||
// to use.
|
||||
guard let inspector = self.inspector else { return }
|
||||
|
||||
// We always update our size because sometimes draw is called
|
||||
// between resize events and if our size is wrong with the underlying
|
||||
// drawable we will crash.
|
||||
|
||||
Reference in New Issue
Block a user