It really depends whether you stuff your face instead of smoking (like you replace the cigs with chocolate) or whether you have healthy nibbles (Carrot sticks, sunflower seeds, s/f chewing gum and lollipops) and exercise a bit more.
Smoking uses up about 200 calories a day but you can easily compensate for that by keeping busy and going for a walk when the cravings hit.
The main reason why people tend to put on weight when they stop smoking is because their sense of smell improves and with it the taste of food, but if you're already overeating I doubt that makes much of a difference. Also as I said if you replace cigarettes with food then it's no wonder you put on weight! (That's very likely to happen if you've been using cigs to suppress your appetite)
But if you have the willpower to stop smoking, then losing a few pounds REALLY isn't that hard!
The best thing to do when you stop smoking is to live healthier as well - try and eat healthy at the same time, exercise, go for walks and so on, and use vitamin supplements (esp. Vitamin B) and stress relief tablets (passiflora/hops) to help you cope!
If you're motivated enough to stop smoking you might as well borrow some of that motivation to eat healthier and exercise more!