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

Memory leak when passing QByteArray from C++ to QML

    XMLWordPrintable

Details

    Description

      Hello,

      We have found a memory bug/clean up issue when passing QByteArray from C++ to QML.

      In the attachment, you can find a minimal example of the problem.

      When we call a Q_INVOKABLE function that returns a QByteArray from a QML signal handler, the memory of our application keeps rising. In the example this is done by clicking in the application. Checking the memory usage you will see it rise, but never fall.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            vdw_hmng Huu Minh Nguyen
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes