Resolving clang analyzer issues found in Xcode5
Merge pull request #120 from klundberg/master

Resolving clang analyzer issues found in Xcode5