Fixed memory leak on callbacks used on signal connection.
Now using the 'destroyed()' signal the reference is cleaned after source object destroyed.
This commit is contained in:
parent
ab738e07d2
commit
75b7afbd63
11 changed files with 212 additions and 84 deletions
|
|
@ -55,8 +55,10 @@ public:
|
|||
const QMetaObject* metaObject() const;
|
||||
void addSlot(const char* slot, PyObject* callback);
|
||||
void removeSlot(int slotId);
|
||||
void connectNotify(int slotId);
|
||||
void disconnectNotify(int slotId);
|
||||
void connectNotify(QObject* sender, int slotId);
|
||||
void disconnectNotify(QObject* sender, int slotId);
|
||||
bool hasConnectionWith(const QObject* object);
|
||||
|
||||
private:
|
||||
DynamicQMetaObject m_metaObject;
|
||||
QSet<int> m_shortCircuitSlots;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue