mirror of
https://github.com/status-im/react-native.git
synced 2025-01-17 21:11:45 +00:00
20a8673b48
Summary: @public There are some race conditions between VM objects getting deallocated and the instanceHandle held by the eventEmitter can point to deallocated memory space, causing undefined behavior like a crash. For now, keep a strong ref to the eventTarget inside EventEmitter to avoid that scenario. This is a temporary workaround. Reviewed By: shergin Differential Revision: D8576785 fbshipit-source-id: 87ef36f716270ceca906b32bb86e0046ceaca19e