WIN32 - fixed memory leak