Plugging a memory leak, as suggested in issue BUKKIT-4503