Skip to content

"No leak found" for an actual leak #1163

@pyricau

Description

@pyricau
  • LeakCanary version: 1.6.2 / master (cefc33d)
  • Device: Emulator Nexus 5 API 26

Create the following activity:

public class MainActivity extends Activity {

  static class Lol {
    static Object foo;
  }

  @Override protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    Lol.foo = this;

  }
}

Start the activity, then press back to finish it. The activity is now leaking. LeakCanary triggers as expected, but then concludes that there is no actual leak. That's incorrect.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions