# gpui: Fix macOS memory leaks \(\#45051\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b22ccfaff5019ecf00ad33fa0569b77f5ebc09e0

Requested commit: b22ccfaff5019ecf00ad33fa0569b77f5ebc09e0

Commit: b22ccfaff5019ecf00ad33fa0569b77f5ebc09e0

Tree: 49463485aaebffe25d61fc583ca449c35fd83469

Author: Anthony Eid

Committer: GitHub

## Message

```
gpui: Fix macOS memory leaks (#45051)

The below memory leaks were caused by failing to release reference
counted resources. I confirmed using instruments that my changes stopped
the leaks from occurring.

- System prompts 
- Screen capturing 
- loading font families

There were also two memory leaks I found from some of our dependencies
that I made PRs to fix
- https://github.com/RustAudio/coreaudio-rs/pull/147
- https://github.com/servo/core-foundation-rs/pull/746

Release Notes:

- N/A
```

## Parents

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

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