 In the original ending, Leela was killed by a Sontaran trying to  save the Doctors life. But it was changed, since it was felt it  would be too traumatizing for the younger viewers, and it was  changed to Leela remaining behind on Gallifrey and falling in love  with Commander Andred.