ON the heels of a shocking cheating scandal, reality TV star Tori Spelling was seen leaving a Los Angeles rehab facility with her husband Dean McDermott.

On Jan. 9, Tori and Dean quietly slipped out of the Grand View House, which treats alcohol and drug addiction and is associated with a facility for psychological and personality disorders, depression and bipolar disorder.

Only a few weeks earlier, the couple’s seven-year marriage was thrown into chaos when Dean, 47, was accused of cheating during a Canadian press tour to promote a new cooking show.

A woman identified as Emily Goodhand, 28, claimed she had sex with the handsome actor during a two-day romp at the Fairmont Royal York Hotel in Toronto – and she says Dean told her he was in a “sexless marriage” with 40-year-old Tori.

“It’s not surprising that Tori and Dean were spotted leaving a treatment facility together,” said a close source. “Even though she’s furious over the cheating allegations, Tori hasn’t thrown Dean out. She wants to make their marriage work for the sake of their children (Liam, 6, Stella, 5, Hattie, 2 and Finn, 16 months) – and also for their future together in show business.

“Clearly, she wants to see Dean overcome whatever problems he has, so it wasn’t surprising that they were photographed leaving such a facility.”

The ENQUIRER recently revealed that Tori’s friends and family urged her to dump Dean following the cheating claims. But she’s determined to stay together to save their new HGTV series “Tori & Dean: Cabin Fever,” due to debut in spring 2014.

Eight episodes were already shot last summer, showing the couple and their youngsters moving into and renovating a lakeside cabin in Ontario, Canada.

The couple has become king and queen of reality program­ming, previously starring in “Tori & Dean: Inn Love” and “Tori & Dean: Home Sweet Hollywood.”

But despite their string of shows, the two are reeling from heavy-duty financial problems, claims Tori. She notes that her estranged mother Candy inherited her father Aaron’s massive $500-million fortune following his death in 2006, while Tori received $800,000 – not much by Hollywood standards.