Skip to content
This repository was archived by the owner on Aug 30, 2022. It is now read-only.
This repository was archived by the owner on Aug 30, 2022. It is now read-only.

Activity memory leak caused by anonymous threads #60

@cuixiaoyiyi

Description

@cuixiaoyiyi

An anonymous inner class will hold a reference to the this pointer of the outer class and will not be released until the thread ends.

It will hold the Activity and prevent its timely release.

com.alienpants.leafpicrevived.activities.MainActivity

The anonymous thread can be replaced by static class to eliminate unnecessary references.

If you agree, a PR will be submitted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions