# gpui: Fix Core Foundation object leaks on macOS \(\#49022\) · gitcafe/zed

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

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

Visibility: public

Requested revision: df905d3893fee492799de57c5a44a572fd9a2b99

Requested commit: df905d3893fee492799de57c5a44a572fd9a2b99

Commit: df905d3893fee492799de57c5a44a572fd9a2b99

Tree: 316534d2b60ef7843f07736a8ac3a04e7ce88798

Author: Albab Hasan

Committer: GitHub

## Message

```
gpui: Fix Core Foundation object leaks on macOS (#49022)

release `TISInputSource` returned by
`TISCopyCurrentKeyboardLayoutInputSource` in `MacKeyboardLayout::new()`,
and `CFUUIDRef` returned by `CGDisplayCreateUUIDFromDisplayID` in
`MacDisplay::uuid()`. both follow the core foundation create rule and
must be released by the caller.

Release Notes:

- N/A
```

## Parents

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

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