Fixed possible memory leak in Windows headers