Fixing various static analyzer warnings in Xcode 6.0.1.