Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
5.12.0, 5.12.3
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
For Gerrit Dashboard: QTBUG-76074 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
263391,3 | In qmlUnregisterType() also remove the type from undeletableTypes | 5.12 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
263406,8 | Provide methods to query and remove a dynamically loaded plugin | 5.15 | qt/qtdeclarative | Status: MERGED | +2 | 0 |