Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.14.0 Alpha
-
None
-
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.