Exactly - once it started getting inappropriate (with the you're so beautiful, etc) the line should have been drawn. He has a gf, even if HE chooses not to respect that, you should have told him that you do.