Don't leak pending call objects when peer disconnects
authorRobin Burchell <robin.burchell@jollamobile.com>
Fri, 20 Dec 2013 18:34:06 +0000 (19:34 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 30 Dec 2013 22:20:40 +0000 (23:20 +0100)
commit82edcd4e12d2652d63ec0732d8053b2761562d3d
treeabbd55eae67453b1307dda2adaabaf266cb79a0c
parent56d141ae6bd3fbb6b100307a7a251e2026147f60
Don't leak pending call objects when peer disconnects

Unlike in regular connection to DBus server, we don't get pending call
notifies when a peer drops the connection in peer-to-peer mode.

Thus, we need to keep track of pending calls in such cases and get rid of
them in ~QDBusConnectionPrivate().

Change-Id: I83e20db0bc7b2ebf509c7fdb1382ffc7d0ede9d3
Done-with: Kalle Vahlman <kalle.vahlman@movial.com>
Reviewed-by: Daniele E. Domenichelli <daniele.domenichelli@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/dbus/qdbusconnection_p.h
src/dbus/qdbusintegrator.cpp