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:
Renato Filho 2010-02-19 17:10:24 -03:00
commit 75b7afbd63
11 changed files with 212 additions and 84 deletions

View file

@ -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;