projects
/
profile
/
ivi
/
qtdeclarative.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed memory leak of registered QML modules
[profile/ivi/qtdeclarative.git]
/
src
/
qml
/
qml
/
qqmlmetatype.cpp
diff --git
a/src/qml/qml/qqmlmetatype.cpp
b/src/qml/qml/qqmlmetatype.cpp
index
1fdc1b9
..
595f9e8
100644
(file)
--- 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