Mary McCormack tossed her husband -- "Smash" director Michael Morris-- out of the Los Angeles house Sunday, after finding out that pictures of her husband playing tonsil hockey with Katharine McPhee were about to be posted on the Internet.

You know, the Internet just ruins everything.

Actress McCormack ("In Plain Sight") has three young kids with Morris. She told him to hit the road after Morris told her the incriminating photos were set to go online, according to the New York Post. The newspaper also claims Morris tried buying the pictures to avoid the scandal.

Here's another way to avoid a scandal: Don't make out with famous women who are not your wife in broad daylight in a public place.

Singer Katharine McPhee performs at CBS’s 8th Annual "A Home for the Holidays" at Ren-Mar Studios on November 12, 2006 in Los Angeles,
Singer Katharine McPhee performs at CBS's 8th Annual "A Home for the Holidays" at Ren-Mar Studios on November 12, 2006 in Los Angeles, California. (Photo by Kevin Winter/Getty Images)

McCormack, 45, has been married to Morris for 10 years.

McPhee, 29, a former "American Idol" runner-up, has been married to producer Nick Cokas, 47, since 2008. The paper reported that the pair are separated.

If they weren't, they probably are now.

Contact Tony Hicks at Facebook.com/BayAreaNewsGroup.TonyHicks or Twitter.com/insertfoot.