Skip to content

Commit c3139d7

Browse files
sherginfacebook-github-bot
authored andcommitted
Fixed crash happenned on deallocating RCTSurface
Summary: Essentially, we had `dispatch_async` inside `delloc` method which tried to retain `self`, which is disallowed operation in ObjC runtime. However, we don't need to notify anything `surface`-related in `_stop` because it always is called from `dealloc`. Reviewed By: mmmulani Differential Revision: D6665631 fbshipit-source-id: ed0d192946f3323f4f54ecb99b30e56e0942f174
1 parent e46ea8c commit c3139d7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

React/Base/Surface/RCTSurface.mm

-2
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,6 @@ - (void)_stop
306306
method:@"unmountApplicationComponentAtRootTag"
307307
args:@[self->_rootViewTag]
308308
completion:NULL];
309-
310-
[self _setStage:RCTSurfaceStageSurfaceDidStop];
311309
}
312310

313311
- (void)_registerRootView

0 commit comments

Comments
 (0)