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

Android context leak when LottieDrawable is cached #2108

Closed
elivish opened this issue Jul 11, 2022 · 0 comments · Fixed by #2163
Closed

Android context leak when LottieDrawable is cached #2108

elivish opened this issue Jul 11, 2022 · 0 comments · Fixed by #2163

Comments

@elivish
Copy link

elivish commented Jul 11, 2022

i'm working on integrate lottie with Glide. Glide will cache those loaded resources, for example LottieDrawable. then i found a context memory leak, a reference chain like below
wecom-temp-c8c74d921d3c392e601922ac72a92c4b

ImageAssetManager has a current context(actually activity) reference, the context used just for loading bitmap. so can we replace this context with application context?

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 a pull request may close this issue.

1 participant