Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid memory leaks by removing callbacks from surface when SimpleExoP…
…layer is released. Without this developers which reuse a SurfaceHolder with multiple instances of SimpleExoPlayer need to call simpleExoPlayer.setVideoSurfaceHolder(null) to get the SimpleExoPlayer.ComponentListener removed from the surface holder. If they don't, the component listener is still registered and as a member class leaks an instance of simpleExoPlayer. Issue #1855 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135292439
- Loading branch information