mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Explicitly set mBinding to null in FabricUIManager
Summary: Although `mBinding` is unregistered which means the connection to the JNI-bridged Cxx object can be destructed, we still hold onto the `mBinding` Java object after unregistering. That doesn't seem desirable, I think we should just clear it out here for consistency. Reviewed By: mdvacca Differential Revision: D17865206 fbshipit-source-id: 1ad8643c48ba0b2d52620a7b8ebe8a52928648ef
This commit is contained in:
committed by
Facebook Github Bot
parent
c82e27030c
commit
299eb9f440
@@ -212,6 +212,7 @@ public class FabricUIManager implements UIManager, LifecycleEventListener {
|
||||
mEventDispatcher.removeBatchEventDispatchedListener(mEventBeatManager);
|
||||
mEventDispatcher.unregisterEventEmitter(FABRIC);
|
||||
mBinding.unregister();
|
||||
mBinding = null;
|
||||
ViewManagerPropertyUpdater.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user