Praise be to Allah.
Urinary incontinence and similar conditions where liquid etc, is passed involuntarily and one cannot control it, should not be given any attention, rather the person should pray according to his situation, even if that liquid etc. is emitted during prayer, because it is too difficult to avoid it. Allah says (interpretation of the meaning):
“… and has not laid upon you in religion any hardship.” [22:78]
But if he fears that his body or clothes may become contaminated, he should wrap it (i.e. the private part) with a cloth or something similar, and pray after doing wudhu, and he should not pay attention to anything that comes out that he cannot control. This is an ordinary kind of sickness, which is very common, and it is not caused by the jinn. Taharah (purity) is essential so you have to renew it (i.e., renew wudhu) for each obligatory prayer.