# Drop \`Box\<dyn PlatformWindow\>\` when the OS closes the native window \(\#8016\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ca251babcd408d4a6944652e524bfed45cfc6a9e

Requested commit: ca251babcd408d4a6944652e524bfed45cfc6a9e

Commit: ca251babcd408d4a6944652e524bfed45cfc6a9e

Tree: d859077d62d0b51a82dbf2c2b1e00f242d3124d2

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Drop `Box<dyn PlatformWindow>` when the OS closes the native window (#8016)

Closes #7973 

This fixes a leak in GPUI when the user didn't override
`on_should_close_window`.

Release Notes:

- N/A

---------

Co-authored-by: Thorsten <thorsten@zed.dev>
```

## Parents

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

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