Open 396514268 opened 6 years ago
I also found it, when i use FBRetainCycleDetector to find the Retain Cycle:
"-> _jsBridge -> WKWebViewJavascriptBridge ",
"-> _base -> WebViewJavascriptBridgeBase ",
"-> _messageHandlers -> NSDictionaryM ",
"-> NSMallocBlock__ "
It has a memory leak,i test this, but i have no idea now.
_bridge = [WKWebViewJavascriptBridge bridgeForWebView:_webView];
when I note this code ,view should go dealloc function
but when I push _bridge=nil in viewDidDisappear
it worked
why?