Porn and Marriage

Answered according to Hanafi Fiqh by

Q: In the past when I was away from my wife I used to watch porn and masturbate. I have left this sinful act for about a year, but I want to know: did what I used to do invalidate my marriage?

A: No your marriage is still valid. However together with leaving this sinful act you should repent to ALLAH  TAALA also.