The Vector class is still leaky, but it's not a noticeable problem with this fix. Proper fixing requries more debugging