US actor Mark Salling, known for his role in the hit TV musical series called Glee passed away on Tuesday. He had been found guilty of possessing child pornography and he was just weeks short of being sentenced for his crime.

Salling was 35 and he had committed suicide by hanging himself.

“I can confirm that Mark Salling passed away early this morning,” his lawyer Michael Proctor said in a statement.

“Mark was a gentle and loving person, a person of great creativity, who was doing his best to atone for some serious mistakes and errors of judgment.”

“The Salling family appreciates the support they have been receiving and asks for their privacy to be respected,” Proctor said.

According to the details provided, Salling had pleaded guilty to possession of child pornography under an agreement with prosecutors. His hearing was scheduled for March 7, in which his sentence was supposed to be read out.

Authorities reportedly found more than 50,000 pornographic images and videos of young girls, on his laptop and external device. Salling had been arrested in late 2015 and charged in 2016.

This was not the first time that Salling had tried to take his own life, as he also tried to commit suicide back in August. However, at that time he was saved by his family.

On Glee, Salling played Noah Puckerman, an angry football player outside his comfort zone when he joins the high school glee club.