diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2012-12-17 00:28:44 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-17 19:50:33 +0100 |
commit | cc89509f831111aadf869b1065ec1ae01f6759b8 (patch) | |
tree | 9fb2f6bea8bccd903ec6a9f1ecba2b11f0feaa9f /tests/auto/widgets/styles/qstyle/tst_qstyle.cpp | |
parent | c4f433d581e2d609d2eaecc4e4b999a469950eb3 (diff) |
Delete the QSlotObject when disconnect()ing
When disconnect()ing through a QMetaObject::Connection, if the
QObjectPrivate::Connection contains a slot object, deref it, so
that it will be destroyed before the next run of cleanConnectionList.
Previously, a copy of the functor passed to connect() was kept until
QObjectPrivate::cleanConnectionLists was called (by adding a new signal,
or the sender was destroyed), even after a successful call to
disconnect(). That is, we were keeping that copy allocated without
any good reason.
Change-Id: Ie6074ea797df1611cb995dec07c5b5a742360833
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/widgets/styles/qstyle/tst_qstyle.cpp')
0 files changed, 0 insertions, 0 deletions