aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype.cpp
diff options
context:
space:
mode:
authorVadim Zakondyrin <thekondr@crystalnix.com>2012-11-17 19:29:25 +0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-19 22:37:32 +0100
commit48b2d386399341307027efb151f59873c5372407 (patch)
tree0bfbd34c01ea22623d60a618673ffdb26f83b28b /src/qml/qml/qqmlmetatype.cpp
parent7cdd8ce8bd4c68b21e7953a1e4101986f27461f9 (diff)
Fixed memory leak of registered QML modules
Change-Id: I254f755641f5ac8383e5818b5294ec85fd9236e8 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Diffstat (limited to 'src/qml/qml/qqmlmetatype.cpp')
-rw-r--r--src/qml/qml/qqmlmetatype.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp
index 1fdc1b95f1..595f9e8de0 100644
--- a/src/qml/qml/qqmlmetatype.cpp
+++ b/src/qml/qml/qqmlmetatype.cpp
@@ -139,6 +139,10 @@ QQmlMetaTypeData::~QQmlMetaTypeData()
{
for (int i = 0; i < types.count(); ++i)
delete types.at(i);
+
+ TypeModules::const_iterator i = uriToModule.constBegin();
+ for (; i != uriToModule.constEnd(); ++i)
+ delete *i;
}
class QQmlTypePrivate