react-native-macos/React/CxxModule
Scott Kyle 2f62c2892d Fix crash in RCTCoreModulesClassProvider during quit
Summary:
This intentionally leaks the static map, since it still might be accessed after static destructors are run. This is a common approach to this problem, see https://github.com/facebook/react-native/pull/22607 and https://github.com/facebook/componentkit/pull/906 as examples. It also sets up an autorelease pool from  `RCTNativeModule::invoke` as a precaution since there's no strict guarantee one exists when it is called.

Changelog:
[iOS][Fixed] - Fix crash in RCTCoreModulesClassProvider during quit

Reviewed By: RSNara

Differential Revision: D27932062

fbshipit-source-id: fa75da4b78290027a762440ac6943c81b8594a57
2021-04-28 13:29:06 -07:00
..
DispatchMessageQueueThread.h Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTCxxMethod.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTCxxMethod.mm Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTCxxModule.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTCxxModule.mm Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTCxxUtils.h Clang format for all React Native files 2020-03-08 23:01:17 -07:00
RCTCxxUtils.mm Proxing NSException stack trace to NSError object 2020-09-08 13:22:54 -07:00
RCTNativeModule.h Instrument sync and async method calls (#28893) 2020-05-13 20:28:18 -07:00
RCTNativeModule.mm Fix crash in RCTCoreModulesClassProvider during quit 2021-04-28 13:29:06 -07:00