-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
Memory leak with sharedViewModel and parameter #220
Labels
Comments
Hello, just ran your code but didn't trigger any memory leak :/ (Pixel 2, Nexus 5X) |
(used API 25 & 27) |
Hmm, I just tried it again with an API 25 emulator. |
Got it. |
arnaudgiuliani
pushed a commit
that referenced
this issue
Sep 10, 2018
Try with |
Works perfectly, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Koin version:
1.0.0-RC-2
I experience a memory leak reported by LeakCanary when using
sharedViewModel
with a parameter.I have a
ViewModel
like this:and inject it like this in my
Fragment
:My module description is this:
LeakCanary
shows me this leak (hprof):Here is a minimal Android project for reproduction. Just install the debug variant, open and close the app; the leak will show up.
If you need anything else, please ask.
Thanks for this great library and looking into this!
The text was updated successfully, but these errors were encountered: