Fixed memory leaks in FloatMatrix.