Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P2: Important
-
Resolution: Done
-
Affects Version/s: 5.14.0 Alpha
-
Fix Version/s: 5.14.0 Beta 1
-
Component/s: QML: Declarative and Javascript Engine
-
Labels:None
-
Commits:fcae2d13e43eab1ea60092194667939f85269bde (qt/qtdeclarative/5.14)
Description
main.qml:
import QtQml 2.0 QtObject { property int a: 6 property QtObject obj1: QtObject { Component.onCompleted: console.log(a) } }
main.cpp:
#include <QCoreApplication> #include <QQmlEngine> #include <QQmlComponent> int main(int argc, char *argv[]) { QCoreApplication app(argc, argv); QQmlEngine engine; QQmlComponent component(&engine, QUrl(QStringLiteral("qrc:/main.qml"))); QObject *object = component.create(); delete object; return 0; }
This leaks a large number of QQmlPropertyCache entries. Qualifying the lookup of 'a' prevents the leak.