A framework for building native applications using React
Ensure that EventEmitterWrapper is cleaned up as soon as a View is deleted
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
J
Joshua Gross committed
25e8fbe8ffa1c91522e91819a781434093f8b759
Parent: 43cf565
Committed by Facebook GitHub Bot <[email protected]>
on 6/10/2021, 6:48:04 AM