From 00e7d46df37220d4bcda33894bc992bc22fb295d Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Thu, 15 Sep 2016 04:24:56 -0700 Subject: [PATCH] Improve stability of RCTAllocationTests Reviewed By: frantic Differential Revision: D3862884 fbshipit-source-id: 52b168c62facd8e67d7047a087c843f3c477ca58 --- Examples/UIExplorer/UIExplorerUnitTests/RCTAllocationTests.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Examples/UIExplorer/UIExplorerUnitTests/RCTAllocationTests.m b/Examples/UIExplorer/UIExplorerUnitTests/RCTAllocationTests.m index 00b9b657b86..2b350910343 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; }