Fixed warnings from Xcode Analyzer
Merge pull request #99 from mr-fahrenheit/master

Fixed warnings from Xcode Analyzer