Fix possible memory leak and an uninitialized variable issue (Xcode 5.1 static analyzer)
Merge pull request #67 from clemensg/fix_potential_leak_and_other_issues

Fix possible memory leak and an uninitialized variable issue