A boy who walked in front of a train after being released from a psychiatric hospital "did not take his own life", according to an inquest into his death.
George Werb, 15, from Colyton, Devon, was killed at Seaton Junction between Axminster and Honiton in 2013 after he "calmly" walked in front of the train.
The doctor who treated George said he would have "felt imprisoned" if he had not been allowed to go home.
His family said he was let down by health professionals.
Speaking on behalf of the family, lawyer Mark Bowman, described George's "incredible life" and "jovial personality".
George was diagnosed with depression.
The inquest at County Hall in Exeter heard between 23 and 27 June 2013 he had drawn pictures in his geography book - one of a train track, one of a tree with a swing underneath, and a stickman with a noose around his neck with the words "game over young man".
The teenager had suffered delusions and talked of emptiness and suicidal thoughts, it was said.
He was admitted to the private Priory Hospital in Southampton on 23 May and was released on 27 June.
The next day on 28 June, he walked "calmly" in front of the train, the inquest was told.
Dr Carlos Hoyos, a consultant child psychiatrist who treated George, said if the teenager had not been allowed home "he would really have felt imprisoned".
He said: "If we'd said you're not going home, delayed his discharge, I felt that would have tipped him into despair."
A serious case review into George's treatment at the Priory is under way.