You got it right brother...you need to detach. No matter what, you need to detach. Then you won't take anything she says or does personally. And your ego won't get wounded. You can't control her actions, but you can control yours. You be responsible for your happiness. Detached, you won't respond with anger or resentment.
"Always go straight forward, and if you meet the devil, cut him in two and go between the pieces." - William Sturgis, clipper ship captain, 1830's.