I have two friends who are married now, Matt and Tasha, since I've known Tasha(about 3 years) I've always hit on her, playfully. Matt and I(friends for 5) have always been pretty ruthless when talking about women, whether it's saying how hot/ugly they are etc. Tasha doesn't get pissed when Matt playfully hits on my girlfriend, and Matt doesn't get pissed when I blatantly hit on Tasha(and Matt knows I wouldn't mind screwing her, as I've expressed my interest since I've known her). So in the same shoes as you, and with less friendship experience that you have between the two, If I were in your shoes I'd tell Matt that it doesn't mean anything and to get over it.

Then again I'll talk mad shit to friends, whether it's meant or just playing around, and never have problem.