A judge brought an end to Mischa Barton’s case against an ex who threatened to sell her sex tape

LOS ANGELES, CA - NOVEMBER 14: Actress Mischa Barton at the Jaguar Concept reveal, ahead of its global debut at the Los Angeles Auto Show, at MILK Studios in Los Angeles, California. (Photo by Neilson Barnard/Getty Images for Jaguar Land Rover)

Actress Mischa Barton must be relieved after a judge blocked her ex from selling her sex tape.

Videos by Rare

According to TMZ, the former couple reportedly made an agreement, and a judge signed off on it. Barton’s ex, Jon Zacharia, has reportedly agreed not to release any explicit material obtained during their relationship, and he must hand all of the images or video over to Barton’s attorney, Lisa Bloom.

RELATED: A-Rod and J.Lo spent a fun weekend together with their children

It was previously reported that Barton obtained restraining orders against Zacharia and another ex, Adam Shaw. The actress reportedly believed that Zacharia captured the images without her consent and was concerned one of her exes was going to try to sell them.

Shaw is still barred from distributing the images, but it is only temporary.

Barton will head back to court on Wednesday in hopes of ending her case against Shaw and preventing him from selling the material.

What do you think?

Carrie Underwood explains why she didn’t celebrate hubby Mike Fisher’s birthday

Miley Cyrus shared an amazing family throwback that probably embarrassed the heck out of her siblings