Fixed windows thread safety again eliminating a memory leak in the process.