From 9e6cee3f5c67da993f696bf80fa8525c1bd24b84 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 11 Sep 2017 10:45:32 +0100 Subject: [PATCH] Turn off tracing after execution finishes * This means the tracing isn't still lingering around when we shutdown and the context is destroyed. --- qrenderdoc/Code/pyrenderdoc/PythonContext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp index 2a1945903..ef93a6e7b 100644 --- a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp +++ b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp @@ -519,6 +519,8 @@ void PythonContext::executeString(const QString &filename, const QString &source // catch any output outputTick(); + PyEval_SetTrace(NULL, NULL); + Py_XDECREF(thisobj); Py_XDECREF(traceContext); }