wangzuo/react-videojs

Does not call player.dispose() on unMount - potential memory leak

Mike-Bell opened this issue · 1 comments

On componentWillUnmount, we should call this.player && this.player.dispose();. Failing to do so will lead to memory leaks in the scenario that the component is dynamically added and removed on your page (found this out the hard way).

See http://docs.videojs.com/Player.html#dispose

seems safe to say this will not be fixed