-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix memory leaks in PlatformViewsController.java #27379
Conversation
Clear context references to avoid memory leaks
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
|
cc @blasten |
|
change LGTM, but this needs a test. Would you be able to add one? |
|
@blasten Do you have guidance on how to test this or if there is an existing test for this component? If not, we can followup separately on setting up a harness and land this as it looks like a real issue. |
|
The fix seems sound. The presubmit failures are a result of pending rebase. Per Jason, we should take ownership of this PR and land this if the OP is unable to make progress on it. |
|
PlatformViewsController.java is tested in PlatformViewControllerTest.java. Add another test that extends this one. To check if |
|
This will be fixed via #27915. Thanks for the PR |
Clear context references to avoid memory leaks