summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlparser.cpp')
-rw-r--r--src/declarative/qml/qmlparser.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlparser.cpp b/src/declarative/qml/qmlparser.cpp
index 9eed3f1..2a67c92 100644
--- a/src/declarative/qml/qmlparser.cpp
+++ b/src/declarative/qml/qmlparser.cpp
@@ -78,6 +78,8 @@ QmlParser::Object::~Object()
prop->release();
foreach(Property *prop, groupedProperties)
prop->release();
+ foreach(Property *prop, valueTypeProperties)
+ prop->release();
}
const QMetaObject *Object::metaObject() const
@@ -121,6 +123,12 @@ void QmlParser::Object::addGroupedProperty(Property *p)
groupedProperties << p;
}
+void QmlParser::Object::addValueTypeProperty(Property *p)
+{
+ p->addref();
+ valueTypeProperties << p;
+}
+
Property *QmlParser::Object::getProperty(const QByteArray &name, bool create)
{
if (!properties.contains(name)) {