diff --git a/ReactCommon/fabric/events/EventQueue.cpp b/ReactCommon/fabric/events/EventQueue.cpp index 01a9ef688e1..3eb775549f2 100644 --- a/ReactCommon/fabric/events/EventQueue.cpp +++ b/ReactCommon/fabric/events/EventQueue.cpp @@ -55,6 +55,9 @@ void EventQueue::onBeat(jsi::Runtime &runtime) const { } // No need to lock `EventEmitter::DispatchMutex()` here. + // The mutex protects from a situation when the `instanceHandle` can be + // deallocated during accessing, but that's impossible at this point because + // we have a strong pointer to it. for (const auto &event : queue) { if (event.eventTarget) { event.eventTarget->release(runtime);