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

When using loader with custom qml types those are not freed when unloading

    XMLWordPrintable

Details

    • Linux/X11, Linux/Other display system

    Description

      Using Loader to load qml file where custom types are being used (registered with 

      qmlRegisterSingletonType) from separate qml plugin and then unloading (setting source = "") loaded qml file, those resources are not being freed as there still exists refCount > = 1 when calling 

      QQmlMetaType::freeUnusedTypesAndCaches().

      Use provided example:

      1.  Press Load/Unload to trigger loading of qml file which will import separate qml plugin

      2. Unload qml file by pressing again Load/Unload

      3. Press gc to trigger garbage collection

      4. Press free unused button in order to start cleaning unused types (which the ones loaded from separate qml file should now be)

       

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            papetaja Pasi Petäjäjärvi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes