diff --git a/Examples/UIExplorer/UIExplorerUnitTests/RCTAllocationTests.m b/Examples/UIExplorer/UIExplorerUnitTests/RCTAllocationTests.m index 00b9b657b..2b3509103 100644 --- a/Examples/UIExplorer/UIExplorerUnitTests/RCTAllocationTests.m +++ b/Examples/UIExplorer/UIExplorerUnitTests/RCTAllocationTests.m @@ -235,6 +235,7 @@ RCT_EXPORT_METHOD(test:(__unused NSString *)a // Wait to complete the test until the new batchedbridge is also deallocated @autoreleasepool { batchedBridge = bridge.batchedBridge; + [bridge invalidate]; bridge = nil; }