Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Fixed
-
Affects Version/s: 5.15.7, 6.2.1, 6.3
-
Fix Version/s: 5.15.8, 6.2.3, 6.3.0 Feature Freeze
-
Component/s: QML: Declarative and Javascript Engine
-
Labels:
-
Commits:8d848811dc (qt/tqtc-qtdeclarative/5.15)
Description
Instantiating the following component leaks a lot of memory, in particular property caches:
import QtQml import QtTest QtObject { id: mouseArea property SignalSpy spy: SignalSpy { signalName: "onObjectNameChanged" target: mouseArea } }
If you switch the property assignments, no memory leaks:
import QtQml import QtTest QtObject { id: mouseArea property SignalSpy spy: SignalSpy { target: mouseArea signalName: "onObjectNameChanged" } }