Fixing AutoPtr usage in infinite elements code.