# Restructure callback subscriptions · gitcafe/zed

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

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

Visibility: public

Requested revision: 378f0c32fe35c104288f8f24468a0bed247defff

Requested commit: 378f0c32fe35c104288f8f24468a0bed247defff

Commit: 378f0c32fe35c104288f8f24468a0bed247defff

Tree: 3585728827b6e39b4dde57e84bb0544e574c3d9c

Author: Max Brunsfeld

Committer: Max Brunsfeld

## Message

```
Restructure callback subscriptions

Fix a callback leak that would occur when dropping a subscription
to a callback collection after triggering that callback, but before
processing the effect of *adding* the handler.

Co-authored-by: Kay Simmons <kay@zed.dev>

```

## Parents

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

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