© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
James Gitonga
I am a software engineer specialised in android development both in Java and Kotlin.
Very informative article! Well done. I have a few questions on the matter of memory leaks and GC in the scope of Hilt:
Yves Kalume
Android Engineer
By definition, a memory leak occurs when an allocated memory isn't released when it is no longer needed. So when we create a singleton with hilt, it's not a memory leak because we need this instance.
Yves Kalume oh okay awesome , and thank you for the quick reply.