Fixed QApplication exit order.
SignalManager need be destroyed before QApplication to avoid memory
leak.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
3468ba1eff
commit
2c937c6442
4 changed files with 16 additions and 3 deletions
|
|
@ -247,10 +247,12 @@ int GlobalReceiver::qt_metacall(QMetaObject::Call call, int id, void** args)
|
|||
retval = PyObject_CallObject(callback, preparedArgs);
|
||||
}
|
||||
|
||||
if (!retval)
|
||||
qWarning() << "Error calling slot" << m_metaObject.method(id).signature();
|
||||
else
|
||||
if (!retval) {
|
||||
qDebug() << "Error calling slot" << m_metaObject.method(id).signature();
|
||||
PyErr_Print();
|
||||
} else {
|
||||
Py_DECREF(retval);
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue