mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
assign webView's delegate to nil
Summary: assign webView’s delegate to nil when the delegate release Closes https://github.com/facebook/react-native/pull/5574 Reviewed By: svcscm Differential Revision: D2869485 Pulled By: nicklockwood fb-gh-sync-id: c72ac64e6c8757a2095d4e5d7baa3a0b6bded6ce
This commit is contained in:
committed by
facebook-github-bot-9
parent
e33e6ab1f0
commit
3f97c5a340
@@ -35,6 +35,11 @@ NSString *const RCTJSNavigationScheme = @"react-js-navigation";
|
|||||||
NSString *_injectedJavaScript;
|
NSString *_injectedJavaScript;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)dealloc
|
||||||
|
{
|
||||||
|
_webView.delegate = nil;
|
||||||
|
}
|
||||||
|
|
||||||
- (instancetype)initWithFrame:(CGRect)frame
|
- (instancetype)initWithFrame:(CGRect)frame
|
||||||
{
|
{
|
||||||
if ((self = [super initWithFrame:frame])) {
|
if ((self = [super initWithFrame:frame])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user