mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
macos: clean up surface on close
This commit is contained in:
@ -182,6 +182,11 @@ class TerminalSurfaceView_Real: NSView, NSTextInputClient, ObservableObject {
|
|||||||
fatalError("init(coder:) is not supported for this view")
|
fatalError("init(coder:) is not supported for this view")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
guard let surface = self.surface else { return }
|
||||||
|
ghostty_surface_free(surface)
|
||||||
|
}
|
||||||
|
|
||||||
override func resize(withOldSuperviewSize oldSize: NSSize) {
|
override func resize(withOldSuperviewSize oldSize: NSSize) {
|
||||||
super.resize(withOldSuperviewSize: oldSize)
|
super.resize(withOldSuperviewSize: oldSize)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user