mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a9f1e23d38
Summary: Changelog: [internal] Why does the crash happen? We call method on invalid address. We crash on `std::weak_ptr::lock` because that's the first accessed ivar. In D29020768 (https://github.com/facebook/react-native/commit/25e8fbe8ffa1c91522e91819a781434093f8b759), eventEmitter may be destroyed before an event is dispatched. Calling destroy on hybrid object destroys only C++ part. Reviewed By: JoshuaGross Differential Revision: D29194906 fbshipit-source-id: ae8d9d90aa8d98d69d29884e80d6b930b1e66870