Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ios): fix retain cycle caused by CDVPluginManager #7692

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

Steven0351
Copy link
Member

This strong reference to the UIViewController and WKWebView owned by Capacitor causes a retain cycle that does not allow for anything to be released from memory when using Cordova plugins. This issue isn't present in typical Capacitor applications, but any scenario where a CAPBridgeViewController that uses Cordova plugins is presented will stay in memory even when the view controller is dismissed.

Copy link
Member

@markemer markemer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. That'll do it.

@Steven0351 Steven0351 merged commit 02bdb3d into main Oct 2, 2024
6 checks passed
@Steven0351 Steven0351 deleted the cordova-weak-controller-and-webview branch October 2, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants