Re:LeakCanary: Detect all Android memory leaks
by joncrocks on Friday May 08, 2015 @05:59PM
(#9514387)
Indeed. In general Java doesn't have memory 'leaks' in the same way as other languages/runtimes, in that things that are kept hanging around are in theory still accessible.
It's possible to have things hanging about that are theoretically access able about but will never be accessed again, which is generally what's meant by 'a memory leak' in a Java context.
It looks like this tool helps you check your assumptions about how long your objects are kept alive.