Cleans up project file and let xcode modernize it a bit.
Fixes memory leak.