Fix segfault when dropping MacWindow (cherry-pick #9267) (#9269)
gcp-cherry-pick-bot[bot]
,
Thorsten Ball
, and
Antonio
created
Cherry-picked Fix segfault when dropping MacWindow (#9267)
This avoids calling `window.setDelegate(nil)` when the window was
already closed.
Release Notes:
- Fixed a segfault that could show up when closing windows.
Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
Co-authored-by: Antonio <antonio@zed.dev>