diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2019-09-30 17:24:25 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2019-09-30 17:38:21 +0200 |
commit | 56926c6628978e349316066342e6d55369bbe373 (patch) | |
tree | 2c75701ac5eca5328e7209e2eaa37a3f2355029a | |
parent | fcae2d13e43eab1ea60092194667939f85269bde (diff) |
Delete type half-built type resolution caches on compile errors
Otherwise they leak.
Change-Id: I744f67e039ffb9cacbf16394bd5558ee72028177
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
-rw-r--r-- | src/qml/qml/qqmltypedata.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmltypedata.cpp b/src/qml/qml/qqmltypedata.cpp index 5e85d7f692..99fe069685 100644 --- a/src/qml/qml/qqmltypedata.cpp +++ b/src/qml/qml/qqmltypedata.cpp @@ -305,6 +305,7 @@ void QQmlTypeData::done() QQmlJS::DiagnosticMessage error = buildTypeResolutionCaches(&typeNameCache, &resolvedTypeCache); if (error.isValid()) { setError(error); + qDeleteAll(resolvedTypeCache); return; } } |