diff --git a/source/blender/python/api2_2x/Geometry.c b/source/blender/python/api2_2x/Geometry.c index f82117205db..344fdcf20a9 100644 --- a/source/blender/python/api2_2x/Geometry.c +++ b/source/blender/python/api2_2x/Geometry.c @@ -310,7 +310,7 @@ static PyObject *M_Geometry_ClosestPointOnLine( PyObject * self, PyObject * args /* do the calculation */ lambda = lambda_cp_line_ex(pt_in, l1, l2, pt_out); - PyTuple_New(2); + ret = PyTuple_New(2); PyTuple_SET_ITEM( ret, 0, newVectorObject(pt_out, 3, Py_NEW) ); PyTuple_SET_ITEM( ret, 1, PyFloat_FromDouble(lambda) ); return ret;