Kaley Cuoco fights back tears at Stand Up for Pits event

Despite having a tough year, Kaley Cuoco looks hotter than ever.

After partying with her ex and "Big Bang Theory" co-star, Johnny Galecki, last week, the 29-year-old actress enjoyed a little girl time on Sunday as she hosted the Stand Up for Pits Comedy Benefit in Hollywood.

WATCH: EXCLUSIVE: Kaley Cuoco Has a Girls Night Out After Divorce Announcement 

Cuoco wowed on the red carpet in a black and white striped dress that showed off her killer legs, which she paired with a leather jacket and white clutch.

Inside the event, the star shared how her dogs were there for her during a difficult year, presumably referring to her separation from husband Ryan Sweeting.

"My two pits have made this last year so much better for me," Cuoco told the audience while fighting back tears, an eyewitness told US Weekly, noting that she then “quickly pulled it together and moved forward."

Following the benefit, Cuoco took to Instagram to share a photo of herself cozying up to a pooch on the red carpet.

WATCH: Kaley Cuoco and Johnny Galecki Slam Dating Rumors: 'No Home Wreckers or Secret Flings' 

“Amazing night supporting #standupforpits @rebeccacorry #angel #adoptdontshop,” she captioned the pic.