[xcodeproj_ext] Fix a few memory leaks and double releases