Answer:
Exercise regularly and make sure you don't begin eating more.
From personal experiance: I stopped 1.25 years ago. My weight gain stopped after 1 year. Now I am starting to lose weight. Concentrate on stopping smoking first. When you feel OK then reduce with a healthy eating plan.
Also, once you stop smoking your general fitness shluld improve, so it should be easier to lose any weight gained.