Former Glee star Mark Salling has died.

TMZ cites a person with knowledge of the situation who says the 35-year-old took his own life.

The actor was set to face court on the seventh of March to be sentenced after pleading guilty to child pornography possession charges in October.

He admitted to having more than 50,000 child porn images on his computer and a thumb drive.

Salling would have faced four to seven years in prison, and been required to register as a sex offender upon being released from prison.

Salling’s attorney Michael J. Proctor said in a statement:

“I can confirm that Mark Salling passed away early this morning.

“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. He is survived by his mother and father, and his brother. The Salling family appreciates the support they have been receiving and asks for their privacy to be respected.”

The actor played bad boy Noah “Puck” Puckerman on all six seasons of Glee.

Salling’s Glee co-star Naya Rivera, who dated Salling during their time on the show, discussed his child pornography court case in her memoir.

“When Mark dumped me, I thought it was the worst thing ever, but can you imagine if that didn’t happen?” she wrote.

“And I was laying there in bed when the battering ram came through the door? I think everyone should have that one relationship where you look back and ask yourself, ‘What the hell was I thinking?’ You’ll learn something and you won’t regret it,” she continued.

“Unless, of course, that relationship was with someone who had a sizable stash of child porn on his computer. Then, by all means, regret everything.”