# Clean up image resources for the current window \(\#45969\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 94faaebfec5e46afa6d3aee5372cbbdb33b97c33

Requested commit: 94faaebfec5e46afa6d3aee5372cbbdb33b97c33

Commit: 94faaebfec5e46afa6d3aee5372cbbdb33b97c33

Tree: ae7a49b4283691c1340c7f5123ded895af0774d5

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Clean up image resources for the current window (#45969)

Closes https://github.com/zed-industries/zed/issues/35894

Trace:
https://drive.google.com/file/d/1pXDFzOg4ZS4p2SX8fk9Cjnyy1Qd1Pkrx/view?usp=sharing
[Relevant
part](https://github.com/user-attachments/files/24412472/image_leak.txt)


Release Notes:

- Fixed a memory leak when opening images
```

## Parents

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

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