Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.8, 5.9
-
None
Description
The attached example creates and deletes tabs in a tabview and leaks memory.
Relevant comment from the other bug report:
"if you change the tabview to a loader there are no error messages but there is still the memory issue (on 5.9.4 but not on 5.8.0)"
ColumnLayout { anchors.fill: parent RowLayout { C.SpinBox { id: timerInterval; value: 20; minimumValue: 10; maximumValue: 2000 } C.Button { id: btnStartStop text: "Start/Stop" onClicked: { timer.running = !timer.running } } Text { text: counter + " items loaded..." } } Loader { id: loader Layout.fillHeight: true Layout.fillWidth: true } } property int counter: 0 Timer { id: timer interval: timerInterval.value repeat: true onTriggered: { counter++ loader.setSource("qrc:/Page1.qml") } }
Reported original by hafwil
Attachments
Issue Links
- duplicates
-
QTBUG-64563 Memory leak in ListView when using QQuickView
- Closed
- resulted from
-
QTBUG-65946 QML Loader Memory Leak
- Closed
For Gerrit Dashboard: QTBUG-66189 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
219049,4 | Fix memory leak with deferred properties | 5.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
219627,2 | Fix memory leak with JS imports | 5.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
219950,3 | Fix memory leak with ListModel.get | 5.11 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
219976,2 | Fix memory leak with ListModel.get | 5.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
219977,2 | Fix memory leak with ListModel.get | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |