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

Clears Fragment reference in FragmentContextWrapper after Fragment#onDestroy() #2438

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

copybara-service[bot]
Copy link

Clears Fragment reference in FragmentContextWrapper after Fragment#onDestroy()

This CL uses the fragment Lifecycle to clear the fragment instance from the FragmentContextWrapper after onDestroy.

Fixes: #2070

See #2070

RELNOTES=Fixes #2070: Clears the Fragment reference in FragmentContextWrapper after Fragment#onDestroy() to prevent leaks if a non-Hilt View outlives the Hilt Fragment that created it.

@google-cla google-cla bot added the cla: yes label Feb 26, 2021
…Destroy()

This CL uses the fragment Lifecycle to clear the fragment instance from the FragmentContextWrapper after onDestroy.

Fixes: #2070

See #2070

RELNOTES=Fixes #2070: Clears the Fragment reference in FragmentContextWrapper after Fragment#onDestroy() to prevent leaks if a non-Hilt View outlives the Hilt Fragment that created it.
PiperOrigin-RevId: 359775904
@copybara-service copybara-service bot merged commit 7f4c3a2 into master Feb 26, 2021
@copybara-service copybara-service bot deleted the test_358388338 branch February 26, 2021 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leak while integrating with navigation component
1 participant