braintree / popup-bridge-ios

Enable your web view to open pages in an ASWebAuthenticationSession
MIT License
38 stars 20 forks source link

Fix various memory leaks caused by capturing self #60

Open jhong70 opened 1 year ago

jhong70 commented 1 year ago

Summary of changes

Authors

Joon Hong

scannillo commented 1 year ago

Hi @jhong70, thank you for opening this PR! Can you provide some more specifics on between which two objects you're seeing a retain cycle as well as steps for how we can replicate this leak?

via-guy commented 11 months ago

@scannillo I recently fixed a memory leak in my project for webView.configuration.userContentController.add, which retains the handler. It was very difficult to debug.