Fix the array of void pointers passed to slots avoiding memory corruption.
This commit is contained in:
parent
742d46f23f
commit
1613ca7080
2 changed files with 4 additions and 4 deletions
|
|
@ -51,7 +51,7 @@ void AbstractQObjectConnection::trigger(void** args)
|
|||
int numArgs = m_signalArgs.count();
|
||||
PyObject* pyArgs = PyTuple_New(numArgs);
|
||||
for (int i = 0; i < numArgs; ++i) {
|
||||
PyObject* arg = TypeResolver::get(m_signalArgs[i])->toPython(args[i]);
|
||||
PyObject* arg = TypeResolver::get(m_signalArgs[i])->toPython(args[i+1]);
|
||||
PyTuple_SET_ITEM(pyArgs, i, arg);
|
||||
}
|
||||
trigger(pyArgs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue