Fix some minor issues found by the Xcode static analyzer
Merge pull request #18 from gameclosure/minor-fixes

Fix some minor issues found by the Xcode static analyzer