>poisonous atmosphere
as opposed to publicly shaming someone without prior warning?
That's bad too, but I think the original point still stands.
I'm sorry, it's not clear to me. I do not think that there's something inherently sexist in sexual innuendo, or that it somehow isn't OK when among adults (and even if there's kids, they likely won't understand it - that's the beauty of innuendo).
Also, as others have said, this clearly wasn't a private situation. The whole problem with these jokes, even if not told directly to someone's face, is that they create a poisonous atmosphere.