Remove unused string.
Check for nullptr.

Static analyzer said it can be nullptr in a use case.
Cleanup win32 stuff.
Don't check new pointer.