# Attempt to fix segfault in window drop \(\#10690\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 41c8f2caa63b551dd02257ae8438df7e91e649b6

Requested commit: 41c8f2caa63b551dd02257ae8438df7e91e649b6

Commit: 41c8f2caa63b551dd02257ae8438df7e91e649b6

Tree: 95d8ac3d21a8b9e0aae17b38c9a9f4d3a7f0f9da

Author: Conrad Irwin

Committer: GitHub

## Message

```
Attempt to fix segfault in window drop (#10690)

By default NSWindow's release themselves when closed, which doesn't
interact well with rust's lifetime system.

Disable that behaviour, and explicitly release the NSWindow when the
window handle is dropped.

Release Notes:

- Fixed a (rare) panic when closing a window.
```

## Parents

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

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