# Use image cache to stop leaking images \(\#29452\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4758173c33572364fdd4720b20cde5f3f008450b

Requested commit: 4758173c33572364fdd4720b20cde5f3f008450b

Commit: 4758173c33572364fdd4720b20cde5f3f008450b

Tree: 6bcc66700e32433913781e840929b3e2c07e1f78

Author: Mikayla Maki

Committer: GitHub

## Message

```
Use image cache to stop leaking images (#29452)

This PR fixes several possible memory leaks due to loading images in
markdown files and the image viewer, using the new image cache APIs

TODO: 
- [x] Ensure this didn't break rendering in any of the affected
components.

Release Notes:

- Fixed several image related memory leaks
```

## Parents

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

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