mirror of
https://github.com/status-im/react-native-webview.git
synced 2025-02-24 01:38:45 +00:00
Merge pull request #64 from phonezawphyo/master
Fix WKWebView memory leak
This commit is contained in:
commit
336cdc8559
@ -95,6 +95,8 @@ static NSString *const MessageHanderName = @"ReactNative";
|
|||||||
[self addSubview:_webView];
|
[self addSubview:_webView];
|
||||||
|
|
||||||
[self visitSource];
|
[self visitSource];
|
||||||
|
} else {
|
||||||
|
[_webView.configuration.userContentController removeScriptMessageHandlerForName:MessageHanderName];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user