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 25fc6550bb
commit 3b02ea0a3b
@@ -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);
}