Who Bears the Emotional Labor in an Affair?

I thought I was giving him the freedom to be himself, figure things out, and come to me when he felt ready. In reality, he was using me to plug the holes in the sinking ship of his marriage. And when she returned, there was no need for me. If one woman was defective and absent; the other would do just fine.