mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
25e8fbe8ff
Summary: In T92179998, there is a crash when an EventEmitterWrapper is deallocated after the JS VM is torn down, and the EventEmitterWrapper tries to free its JSI::Pointer reference (double-free). To make sure this happens less/not at all, free EventEmitterWrappers on ViewState when a view is deleted, instead of waiting for all of RN to be torn down. Changelog: [Internal] Reviewed By: fkgozali Differential Revision: D29020768 fbshipit-source-id: 9d72a23bc9966992ef56c1e3ee523405d4333194