mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix refcounting on python traceback object
This commit is contained in:
@@ -165,7 +165,7 @@ void FetchException(QString &typeStr, QString &valueStr, int &finalLine, QList<Q
|
||||
|
||||
if(func && PyCallable_Check(func))
|
||||
{
|
||||
PyObject *args = Py_BuildValue("(N)", tracebackObj);
|
||||
PyObject *args = Py_BuildValue("(O)", tracebackObj);
|
||||
PyObject *formattedTB = PyObject_CallObject(func, args);
|
||||
|
||||
PyTracebackObject *tb = (PyTracebackObject *)tracebackObj;
|
||||
|
||||
Reference in New Issue
Block a user