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

Memory Leak in QQmlApplicationEngine

    XMLWordPrintable

Details

    Description

      My Code:
      QQmlApplicationEngine engine = new QQmlApplicationEngine(this);

      Valgrind reports:

      120 bytes in 1 blocks are indirectly lost in loss record 1,319 of 1,618
      in XXX::init() in /.../XXX.cpp:19
      1: operator new(unsigned long) in /build/valgrind-wxemGl/valgrind-3.11.0/coregrind/m_replacemalloc/vg_replace_malloc.c:333
      2: QFileSelector::QFileSelector(QObject*) in .../libQt5Core.so.5.5.1
      3: QQmlFileSelectorPrivate::QQmlFileSelectorPrivate() in .../libQt5Qml.so.5.5.1
      4: QQmlFileSelector::QQmlFileSelector(QQmlEngine*, QObject*) in .../libQt5Qml.so.5.5.1
      5: QQmlApplicationEnginePrivate::init() in .../libQt5Qml.so.5.5.1
      ...

      I suspect qqmlapplicationengine.cpp:72 (both in 5.5. and 5.6)
      72 new QQmlFileSelector(q,q);

      but haven't dug deep enough into the internas of Qt to fully understand if this could make sense anyhow.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            snafubaer snafubaer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes