Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.4.1
-
None
Description
There is object leak in QQmlInstantiator, for reproduce launch next code and look for memory usage in time
import QtQuick 2.4 Item { Instantiator {//this is just a jitter, for create and delete the target Instantiator id: inst delegate: Instantiator {//this is target, there is leak after target destroyed model: 1 Item {} } } Timer { interval: 1 repeat: true running: true onTriggered: { if(inst.model) inst.model = 0 else inst.model = 1000 } } }
see possible fix in patch attached
Attachments
For Gerrit Dashboard: QTBUG-45271 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
109578,2 | fix model leak in QQmlInstantiator | 5.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |