Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
6.7.2
-
None
Description
Function trimComponentCache does not clean unloaded components' cache, old versions are loaded after change. Function clearComponentCache works.
Issue occurs with Loader with following qml js code.
loader.source = ""
Cache.trim() // Wrapper for trimComponentCache
loader.source = componentUrl
Also it occurs with manually creating component
object.destroy() // Here I tried asynchronously waiting time, calling gc() and setting object to undefined, nothing of that helped Cache.trim() var comp = Qt.createComponent(componentUrl, Component.PreferSynchronous) object = comp.createObject()
I'm attaching minimal example with Loader, with two reload buttons, one clearComponentCache, other with trimComponentCache. First one works, second does not