boyfriend troubles

my boyfriend told another girl that he loved her and I broke up with him. was I wrong in doing that? I asked him why he did it but he could give me a reason.