Skip to content

Commit 9ceadf4

Browse files
committed
fix: the WKWebView will leak in the platform centered approach unless this property is cleared (#1486)
1 parent 2f0e19e commit 9ceadf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ - (void)dispose
273273
{
274274
WKWebView* wkWebView = (WKWebView*)_engineWebView;
275275
[wkWebView.configuration.userContentController removeScriptMessageHandlerForName:CDV_BRIDGE_NAME];
276+
_engineWebView = nil;
276277

277278
[super dispose];
278279
}

0 commit comments

Comments
 (0)