Fixed memory issues with player.