Memory leak while using ListView

  • good morning everyone, I think i found a memory leak while using ListView and ListModel.
    code is quite simple, just a ListView and a delegate which's duty is to show the image from the model's data(src).
    the running of qml is ok, but when we flick the listview as many as times, i found the using memory is increased without a limit. it's possiable increase to 1GB if we try as many as times.
    attachmemt is the code.

    the code is show as follow :

    @import QtQuick 2.0

    Rectangle {
    id : viewer
    width: 800
    height: 480
    function addItem()
    ListModel {
    id : picSrcList

    Component {
        id : picDelegate
        Image {
            source: src
            fillMode: Image.PreserveAspectFit
            asynchronous: true
            width: viewer.width
            height: viewer.height
    ListView {
        id :picListView
        anchors.fill: parent
        delegate: picDelegate
        model : picSrcList
        orientation : ListView.Horizontal
        snapMode: ListView.SnapOneItem
    Component.onCompleted: {


    is my code has any problem?
    I report this "BUG?" to
    does anybody could help me to test this code and find out if it has a memory leak.
    thanks so much.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.