Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.2.0, 6.6.0
-
None
Description
serverConnectionNames QStringList from QDBusConnectionPrivate server connection in QDBusServer will be cleared in destructor of QDBusServer only.
This is the only place where it is cleared:
QDBusServer::~QDBusServer() { if (QDBusConnectionManager::instance()) { QMutexLocker locker(&QDBusConnectionManager::instance()->mutex); Q_FOREACH (const QString &name, d->serverConnectionNames) { QDBusConnectionManager::instance()->removeConnection(name); } d->serverConnectionNames.clear(); // Here it is } }
So in server application where QDBusServer is created on startup and removed on shutdown this QStringList will eat memory.