You kind of got it backwards.
If it's done compulsively, meaning that you try to stop but can't, it's more likely to be an issue after marriage. And marriage will make things worse, not better.
In any case, if you know you've got an issue with something, it's best to be open with your kallah about it before you get married, rather than it potentially coming out afterwards.
For example, I thought this issue would go away for me after marriage, so I didn't tell my wife anything about it when we were going out.
On the other hand, I had a huge temper that only people close to me really saw (my friends can't believe I have a temper, but just ask my younger brother!), so I was really nervous that something would happen after I got married. When my wife asked me if I ever got angry, I didn't really want to talk about it, but felt I had to, so I took a deep breath and told her that I have a temper. She was happy that I was honest about my shortcoming and she trusted me. Shortly after I got married, I told my wife that if I ever hit her, she should just pick up and leave. Boruch Hashem, my temper wasn't really an issue since marriage, but I'll give you 3 guesses what was an issue. Oh, and the first two guesses don't count, but I'll give you a hint: I'm on this site.