Wudu is nullified by anything that exits from the private parts (urine, stool, or wind), by deep sleep, and by loss of consciousness. After any of these, wudu must be renewed before prayer.
References
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.