Turn off tracing after execution finishes

* This means the tracing isn't still lingering around when we shutdown
  and the context is destroyed.
This commit is contained in:
baldurk
2017-09-11 10:45:32 +01:00
parent e588b496e5
commit 9e6cee3f5c
@@ -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);
}