Merge pull request #52 from narpfel/fix-use-after-free
Fix use after free of Query.capture_names elements