Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.15.5
-
-
b80655d9ec266155e3719d91c17ed69e81a3a103 (qt/qtdeviceutilities/dev) 70bff8fd1eaa340eca40bbc4ffd9bdf1f593603f (qt/qtdeviceutilities/6.2) 5dfaab214d29133bbb2f7e23726f2ef8cd8e8e08 (qt/qtdeviceutilities/5.15)
-
2021wk36POeLinuxRTOS, 2021wk38POeLinuxRTOS, 2021wk40POeLinuxRTOS, 2021wk42POEmbedded, 2021wk44POEmbedded, 2021wk46POEmbedded, 2021wk48POEmbedded
Description
If the WIFI network changes often it leads to a memory leak, because the network service is not deleted on change:
void QNetworkSettingsManagerPrivate::handleNewService(const QString &servicePath)
creates the service:
QNetworkSettingsService *service = new QNetworkSettingsService(servicePath, this);
and expects it to be only deleted when QNetworkSettingsManager is destroyed.
Possible workaround can be:
bool QNetworkSettingsServiceModel::removeService(const QString &id) { bool ret = false; for (int i=0; i < m_items.count(); i++) { if (m_items.at(i)->id() == id) { // workaround m_items[i]->deleteLater(); // workaround end remove(i); ret = true; break; } } return ret; }
Attachments
Issue Links
- relates to
-
QTBUG-81732 QNetworkSettingsIPv4 method reported wrong
- Closed
-
QTBUG-88649 USB WiFi adapter does not work in Apalis iMX6
- Closed
-
QTBUG-90574 When a WiFi service is removed then it is not triggering the serviceChanged() signal from QNetworkSettingsManager
- Closed
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTBUG-94864 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
372187,5 | Do not leak QNetworkSettingsService instances for unnamed networks | dev | qt/qtdeviceutilities | Status: MERGED | +2 | 0 |
384542,2 | Do not leak QNetworkSettingsService instances for unnamed networks | 6.2 | qt/qtdeviceutilities | Status: MERGED | +2 | 0 |
384543,3 | Do not leak QNetworkSettingsService instances for unnamed networks | 5.15 | qt/qtdeviceutilities | Status: MERGED | +2 | 0 |