Fix memmory leak in AnisotropicMatrix3D