aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmltypeloader_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-09-20 14:53:53 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 22:14:19 +0200
commit5d7480aff029a8957170bcc36774225d6fb08eb7 (patch)
tree08d6cfe7a12c6657a6d9672b55ba9c7d168a1569 /src/qml/qml/qqmltypeloader_p.h
parent8514652f7d53013e7e14cd62ac054f32b907aeec (diff)
[new compiler] Fix crash with remote imports
The import logic keeps pointers to the provided const QQmlImport references, which means we can't pass references to temporaries when using the new code path but for now have to keep the import objcts as member. Change-Id: I75eff8dbe655ed23188f3f62f743a8f987bc709e 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmltypeloader_p.h b/src/qml/qml/qqmltypeloader_p.h
index fee09d3bdb..fd5f23ffcb 100644
--- a/src/qml/qml/qqmltypeloader_p.h
+++ b/src/qml/qml/qqmltypeloader_p.h
@@ -454,6 +454,7 @@ private:
QQmlScript::Parser scriptParser;
// --- new compiler
QScopedPointer<QtQml::ParsedQML> parsedQML;
+ QList<QQmlScript::Import> m_newImports;
// ---
QList<ScriptReference> m_scripts;