# Merge pull request \#1673 from zed-industries/fix-cgevent-memory-leak · gitcafe/zed

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

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

Visibility: public

Requested revision: 761ae3ae6f0e68fff18aa22337ed78ce41f40187

Requested commit: 761ae3ae6f0e68fff18aa22337ed78ce41f40187

Commit: 761ae3ae6f0e68fff18aa22337ed78ce41f40187

Tree: 727a0843c1e542b96484cae5641c34ab50bc5b42

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Merge pull request #1673 from zed-industries/fix-cgevent-memory-leak

Cache `CGEventSource` and avoid leaking `CGEvent` when handling events
```

## Parents

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

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

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