From 5a432747c7793242d83e87bd275f7fa72b92474a Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 18 Apr 2017 18:01:52 +0100 Subject: [PATCH] Don't set Py_TPFLAGS_HAVE_FINALIZE when we don't implement tp_finalize --- qrenderdoc/Code/pyrenderdoc/PythonContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp index 5f1013fed..1d7f60a8c 100644 --- a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp +++ b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp @@ -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;