Skip to content

Memory leak due to rapid toggle of animation #75

@mrhubbs

Description

@mrhubbs

I'm using a GifImageView in situation where the animation is stopped and started very rapidly for a period of time. This toggling can happen as frequently as <10 milliseconds. This creates a memory leak which eventually crashes my app.

From the code here, it looks like the thread which runs the animation is not actually stopped on the call to stopAnimation.

https://github.com/felipecsl/GifImageView/blob/master/library/src/main/java/com/felipecsl/gifimageview/library/GifImageView.java#L184

Am I correct in that and, if so, what is the reason for this behavior?

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