Leaks (PythonQtSlotFunction_Check)?
Dynamic Python binding for Qt Applications
Brought to you by:
florianlink,
marcusbarann
Hi
When a py script creates UI class inherited from QDialog, then UI crashes randomly (after several window resizing for example). In debugger I see python can't allocate a new object. I've modified PythonQtSlotFunction_Check as following
//II
// #define PythonQtSlotFunction_Check(op) ((op)->ob_type == &PythonQtSlotFunction_Type)
inline bool PythonQtSlotFunction_Check( PyObject * op )
{
if (op->ob_type != &PythonQtSlotFunction_Type) return false;
Py_DECREF(op);
return true;
}
//
Is there a better way?
Thx