-
Notifications
You must be signed in to change notification settings - Fork 216
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 in Route class #477
Comments
I think this issue is quite widespread, and may be quite involved to refactor away from. Given we've not (to my knowledge) observed any issues as a result of this, I recognise the issue but wouldn't say we should necessarily give it a high priority. |
Agreed, yes. |
LiveRide freezes on my Fairphone 2 (though fine on my FP3) and I've tracked it down to this. I'm working on a fix - it seems to be possible to pass the context as a parameter in the functions which need it. |
Now I'm not so sure that's the problem. |
Android Studio is giving a warning in the Route.kt class:
"Do not place Android context classes in static fields (static reference to 'Route' which has field context_ pointing to Context); this is a memory leak."
The text was updated successfully, but these errors were encountered: