Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.0, 5.0.0
-
None
-
a386194f9952683c0be5028f2b7f0ce9617fe404
Description
From the DBus documentation: A DBusServer represents a server that other applications can connect to. Each connection from another application is represented by a DBusConnection.
QDBusServer only works properly with one connection. For multiple connections basically only the last one is used.
Every QDBusServer has currently only one QDBusConnectionPrivate instance assigned. In qDBusNewConnection (via QDBusConnectionPrivate::setPeer) the old DBusConnection is overridden (and leaked) by the new connected one.
I think there should be a QDBusConnectionPrivate instance for every DBusConnection connected to the server.