Commit 13c69c8f authored by Ben Boeckel's avatar Ben Boeckel Committed by David Gobbi
Browse files

PyVTKObject: shorten the lifetime of the `s` object

It isn't needed after this point anymore.
parent 5b6e9c49
......@@ -518,6 +518,7 @@ PyObject *PyVTKObject_FromPointer(
return NULL;
}
classname = vtkname_classname;
Py_DECREF(s);
}
cls = vtkPythonUtil::FindClass(classname.c_str());
if (cls == 0)
......@@ -525,10 +526,8 @@ PyObject *PyVTKObject_FromPointer(
PyErr_Format(PyExc_ValueError,
"internal error, unknown VTK class %.200s",
classname);
Py_XDECREF(s);
return NULL;
}
Py_XDECREF(s);
}
if (!ptr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment