mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03: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