aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandr Rekunkov <vopl@bk.ru>2015-03-30 13:29:52 +0300
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-04-18 16:40:57 +0000
commitcea2e8e110e90cc98d561609333fddbc7652ccba (patch)
tree0f3bb2f31b147ffe1e0980ed412b7e6d2cc56d50 /src
parent2b3c2339616680537145a9cc2e7567575add1abb (diff)
fix model leak in QQmlInstantiator
Change-Id: Ieb6ef229bc999f1a35adc2a157bd42a38908f7d7 Task-number: QTBUG-45271 Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/qml/types/qqmlinstantiator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/types/qqmlinstantiator.cpp b/src/qml/types/qqmlinstantiator.cpp
index 891011081d..1ee6532822 100644
--- a/src/qml/types/qqmlinstantiator.cpp
+++ b/src/qml/types/qqmlinstantiator.cpp
@@ -169,7 +169,7 @@ void QQmlInstantiatorPrivate::_q_modelUpdated(const QQmlChangeSet &changeSet, bo
void QQmlInstantiatorPrivate::makeModel()
{
Q_Q(QQmlInstantiator);
- QQmlDelegateModel* delegateModel = new QQmlDelegateModel(qmlContext(q));
+ QQmlDelegateModel* delegateModel = new QQmlDelegateModel(qmlContext(q), q);
instanceModel = delegateModel;
ownModel = true;
delegateModel->setDelegate(delegate);