From 3b02ea0a3b2db9f5e189e52cfb87750b4fb52032 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 a6c17fdf9..4dede12a4 100644 --- a/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp +++ b/qrenderdoc/Code/pyrenderdoc/PythonContext.cpp @@ -518,6 +518,8 @@ void PythonContext::executeString(const QString &filename, const QString &source // catch any output outputTick(); + PyEval_SetTrace(NULL, NULL); + Py_XDECREF(thisobj); Py_XDECREF(traceContext); }