If the batteries leaked, you may have some corrosion causing the problem. Take it apart and check all the contacts, especially the shiny parts of the tailcap, the tip of the spring, and peek in at the contact at the head-end of the tube. If you see corrosion, you'll need to clean it off and make the contacts shiny again. Here's some helpful info and some products you can use.
http://www.flashlightreviews.com/features/care.htm
Optionally, if they were big-name-brand batteries, and they seem to have caused the problem, you can contact the battery manufacturer. They'll probably want you to send them the light so they can inspect it and if it's the fault of the batteries they should send you a check to get a new one. Duracell, energizer, and rayovac all have a guarantee to cover products damaged by leaking batteries. If you go this route, do NOT try to clean it up first - just contact them and send it in if they ask for it.