Fix analyzer warnings.

Hey Mario,

this just fixes the warnings you get when you run the static analyzer in Xcode with cmd+shift+B. They are all false positives, your code was just fine before. Expressing it in a different way makes the static analyzer happy :).

Best regards,
Johannes