diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-02-19 17:10:24 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-02-23 16:35:40 -0300 |
commit | 75b7afbd63be9b27d3bd964891720e8c16079280 (patch) | |
tree | f56e9d83a73bff0119333649521663f5c45aad20 /libpyside/globalreceiver.h | |
parent | ab738e07d2cffc0fc9692ecc3a5f830847b853bb (diff) |
Fixed memory leak on callbacks used on signal connection.
Now using the 'destroyed()' signal the reference is cleaned after source
object destroyed.
Diffstat (limited to 'libpyside/globalreceiver.h')
-rw-r--r-- | libpyside/globalreceiver.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libpyside/globalreceiver.h b/libpyside/globalreceiver.h index 9243f9d3f..605003603 100644 --- a/libpyside/globalreceiver.h +++ b/libpyside/globalreceiver.h @@ -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; |