On Mon Jun 12 16:12:24 2023 +0000, Esme Povirk wrote:
If you do release it in that (unexpected) case, won't the list end up with a dangling reference to it? I feel like the appropriate thing to do here is assert because it's an invalid state.
Oh right, I hadn't considered that. If the event map does hold a reference, it should be NULL before we ever hit a reference count of 0. An assert does make sense here, good call.