Don't set Py_TPFLAGS_HAVE_FINALIZE when we don't implement tp_finalize

This commit is contained in:
baldurk
2017-04-18 18:01:52 +01:00
parent 2e2bd1759d
commit 5a432747c7
@@ -252,7 +252,7 @@ void PythonContext::GlobalInit()
OutputRedirectorType.tp_name = "renderdoc_output_redirector";
OutputRedirectorType.tp_basicsize = sizeof(OutputRedirector);
OutputRedirectorType.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_FINALIZE;
OutputRedirectorType.tp_flags = Py_TPFLAGS_DEFAULT;
OutputRedirectorType.tp_doc =
"Output redirector, to be able to catch output to stdout and stderr";
OutputRedirectorType.tp_new = PyType_GenericNew;