Remove reference leak on global receiver.
This commit is contained in:
parent
c0a4142c42
commit
1783db758c
1 changed files with 0 additions and 1 deletions
|
|
@ -234,7 +234,6 @@ int GlobalReceiver::qt_metacall(QMetaObject::Call call, int id, void** args)
|
||||||
Shiboken::AutoDecRef preparedArgs(PyTuple_New(paramTypes.count()));
|
Shiboken::AutoDecRef preparedArgs(PyTuple_New(paramTypes.count()));
|
||||||
for (int i = 0, max = paramTypes.count(); i < max; ++i) {
|
for (int i = 0, max = paramTypes.count(); i < max; ++i) {
|
||||||
PyObject* arg = Shiboken::TypeResolver::get(paramTypes[i].constData())->toPython(args[i+1]); // Do not increment the reference
|
PyObject* arg = Shiboken::TypeResolver::get(paramTypes[i].constData())->toPython(args[i+1]); // Do not increment the reference
|
||||||
Py_INCREF(arg);
|
|
||||||
PyTuple_SET_ITEM(preparedArgs.object(), i, arg);
|
PyTuple_SET_ITEM(preparedArgs.object(), i, arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue