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

When assigning a QQmlListProperty of QObjects that are Javascript owned to a variable inside QML then it is not garbage collected when there are no references to it anymore

    XMLWordPrintable

Details

    Description

      When assigning a QQmlListProperty of QObjects that are Javascript owned to a variable inside QML then it is not garbage collected when there are no references to it anymore. Therefore it is leaking this as it is not reclaimed even when the application is closed down either. In the example, the commented out approach which assigns the object in the list directly shows that it works that way, but the approach used where it assigns the whole list is not cleaned up, even though there are no more references to it.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            andysh Andy Shaw
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes