summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlcontext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlcontext.cpp')
-rw-r--r--src/declarative/qml/qmlcontext.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlcontext.cpp b/src/declarative/qml/qmlcontext.cpp
index 49bb59c..4467cce 100644
--- a/src/declarative/qml/qmlcontext.cpp
+++ b/src/declarative/qml/qmlcontext.cpp
@@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE
QmlContextPrivate::QmlContextPrivate()
: parent(0), engine(0), isInternal(false), propertyNames(0), notifyIndex(-1),
highPriorityCount(0), imports(0), expressions(0), contextObjects(0),
- idValues(0), idValueCount(0)
+ idValues(0), idValueCount(0), optimizedBindings(0)
{
}
@@ -303,6 +303,9 @@ QmlContext::~QmlContext()
if (d->imports)
d->imports->release();
+
+ if (d->optimizedBindings)
+ d->optimizedBindings->release();
}
void QmlContextPrivate::invalidateEngines()