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: Prevent memory leak in CompositeWithOpaqueBackground #309

Merged
merged 1 commit into from
Dec 9, 2023

Conversation

nikclayton
Copy link
Contributor

Quoting @connyduck in tuskyapp/Tusky#4150:

"""
The transformation ends up in Glide's memory cache and leaks whole Activities through the view -> context reference.

This fixes the problem by removing the background detection logic (so the view reference is no longer needed) and setting the background directly instead. Looks exactly as before.
"""

Co-authored-by: Konrad Pozniak opensource@connyduck.at

Quoting @connyduck in tuskyapp/Tusky#4150:

"""
The transformation ends up in Glide's memory cache and leaks whole
Activities through the view -> context reference.

This fixes the problem by removing the background detection logic (so
the view reference is no longer needed) and setting the background
directly instead. Looks exactly as before.
"""
@nikclayton nikclayton merged commit d4eed2f into pachli:main Dec 9, 2023
@nikclayton nikclayton deleted the leak-compositewithopaque branch December 9, 2023 17:36
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.

1 participant