The greatest love one can wish on a person is that he goes to heaven when he dies.
In order to do that, that person must die without the guilt of mortal sin on his soul.
Therefore, to hope or pray that someone else dies in a state of repentance and conversion is just about the greatest expression of love possible toward that person. It is not in any way, shape, or form an expression of "self-righteousness". In fact, many traditional Catholics will tell you that to "pray for a good death," for both yourself and the ones you love, is very important.
And yes, you absolutely have permission to pray that I die in state of repentance and conversion. (If I didn't have a family to attend to, I'd give you leave to add "tomorrow" after "die".)
I’m praying that he recovers from his injuries, and also that he stops teaching error and publicly retracts what he has taught.
You can pray for me to depart from evil and learn to do good before I die, too. (Tomorrow, if I didn’t have a family to attend to.)