aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmltypeloader_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-09-06 10:17:47 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-08 09:00:18 +0200
commit34b6914970958ace37a3654600637b6fd3d2435c (patch)
tree131024227fa9e20f6eb085b1fe003a6c8a6b1152 /src/qml/qml/qqmltypeloader_p.h
parent5b456c8da4462f9e11fa4da78a9e6ea86423a1e8 (diff)
Free the parsed QML data structure when we're done compiling the type
The QQmlTypeData is going to stick around (and keep the important stuff in its m_compiledData member), but the rest of the data we can free. Change-Id: If331504055960145911fef566b309f812dca5337 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmltypeloader_p.h')
-rw-r--r--src/qml/qml/qqmltypeloader_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmltypeloader_p.h b/src/qml/qml/qqmltypeloader_p.h
index 9e71bab7b0..3a3fa8f1d5 100644
--- a/src/qml/qml/qqmltypeloader_p.h
+++ b/src/qml/qml/qqmltypeloader_p.h
@@ -450,7 +450,7 @@ private:
// --- old compiler
QQmlScript::Parser scriptParser;
// --- new compiler
- QtQml::ParsedQML parsedQML;
+ QScopedPointer<QtQml::ParsedQML> parsedQML;
// ---
QList<ScriptReference> m_scripts;