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
This commit is contained in:
Valentin Shergin 2018-01-07 22:06:13 -08:00 committed by Facebook Github Bot
parent e46ea8c737
commit c3139d798a
1 changed files with 0 additions and 2 deletions

View File

@ -306,8 +306,6 @@
method:@"unmountApplicationComponentAtRootTag"
args:@[self->_rootViewTag]
completion:NULL];
[self _setStage:RCTSurfaceStageSurfaceDidStop];
}
- (void)_registerRootView