Skip to content

ExoPlayer set up with Rtmp extension leaks memory when closing the activity with playerView #4249

@AdamGrzybkowski

Description

@AdamGrzybkowski

Issue description

LeakCanary detects a leak when closing activity with PlayerView.

I'm using the ExoPlayer with Rtmp extensions to display the live stream. When the url is invalid (there is no live stream there) the leak occurs.

This is how the releasePlayer method looks like

private fun releasePlayer() {
        player?.release()
        player = null
        playerView.player = null
        mediaSource = null
        trackSelector = null
}

screenshot_20180514-081829

Version of ExoPlayer being used

2.8.0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions