Skip to content

Commit

Permalink
feat: set _engineWebView to nil on dispose() to avoid leaking (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
msmtamburro committed Sep 4, 2024
1 parent 98a3bcd commit c70a857
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ - (void)dispose
{
WKWebView* wkWebView = (WKWebView*)_engineWebView;
[wkWebView.configuration.userContentController removeScriptMessageHandlerForName:CDV_BRIDGE_NAME];

wkWebView = nil;

[super dispose];
}

Expand Down

0 comments on commit c70a857

Please sign in to comment.