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:
Joshua Gross
2019-10-10 20:36:56 -07:00
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();
}