Not gagging your dive buddy is a worthy thought.
But, let's not lose sight of other important facts. She ran out of air. Then, apparently, she basically did not use any of her husband's air, because she gagged, vomited, etc., as soon as she tried to use her husband's air. Then, her husband ran out of air himself, on the way to the surface (while not even sharing with anyone else). So, she ran out and he was critically low at the same time (as you might expect of a compatible dive buddy - to both get low at about the same time).
The gagging sounds like a contributing factor that is of much lower importance, overall, than the fact that they were both out or critically low on gas..