diff --git a/React/CxxBridge/RCTObjcExecutor.mm b/React/CxxBridge/RCTObjcExecutor.mm index 476bcff9b..94c071789 100644 --- a/React/CxxBridge/RCTObjcExecutor.mm +++ b/React/CxxBridge/RCTObjcExecutor.mm @@ -45,7 +45,10 @@ public: { m_jsCallback = ^(id json, NSError *error) { if (error) { - m_errorBlock(error); + // Do not use "m_errorBlock" here as the bridge might be in the middle + // of invalidation as a result of error handling and "this" can be + // already deallocated. + errorBlock(error); return; }