fix to segfault introduced by ar-fix-resourceleaks
Merge pull request #85 from ChristianBeer/hotfix-ar-fix-resourceleaks

fix to segfault introduced by pull request #81
Merge remote-tracking branch 'upstream/master'