Someone wrote in to one of the advice columnists in the paper I read asking what to do in this situation. The columnist's advice was to, whenever the friend starts slamming the other person, say, "she/he always speaks very highly of you." Kind of takes the wind out of their sails.