Disable location tracking when the view disappears.