# Fix segfault when dropping MacWindow \(\#9267\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/754df9356d815c8c17ad2ce1cb5f6183840ab9f0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 754df9356d815c8c17ad2ce1cb5f6183840ab9f0

Requested commit: 754df9356d815c8c17ad2ce1cb5f6183840ab9f0

Commit: 754df9356d815c8c17ad2ce1cb5f6183840ab9f0

Tree: cf3451696455d0eaaaefd1e1a40e93bdc102cd6a

Author: Thorsten Ball

Committer: GitHub

## Message

```
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>
```

## Parents

- [3c28282108caed3bb88bfde1da7ce1a7591500eb](https://git.cafe/gitcafe/zed/commit/3c28282108caed3bb88bfde1da7ce1a7591500eb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/754df9356d815c8c17ad2ce1cb5f6183840ab9f0?format=markdown)
