Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-45271

Leaks in QQmlInstantiator

    XMLWordPrintable

Details

    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

        Activity

          People

            shausman Simon Hausmann
            vopl vopl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes