According to the Mayo Clinic these are some known causes of leg cramps. As you can see alcoholism and dehydration are listed. I doubt that a couple of glasses of wine will cause them, but drinking water right before going to bed may help.