If you say that someone has it coming to them, you mean that they deserve everything bad that is going to happen to them, because they have done something wrong or are a bad person. If you say that someone got what was coming to them, you mean that they deserved the punishment or bad experience that they have had. [informal]
He was pleased that Brady was dead because he probably had it coming to him.