Win32 leaks

Plug some leaks in win32.