Commit 655b06b4 authored by dt's avatar dt
Browse files

Fix memory leak in QtVersionManager

parent f4943f3c
......@@ -392,8 +392,7 @@ void QtVersionManager::setNewQtVersions(QList<QtVersion *> newVersions, int newD
}
qDeleteAll(m_versions);
m_versions.clear();
foreach(QtVersion *version, newVersions)
m_versions.append(new QtVersion(*version));
m_versions = newVersions;
if (versionPathsChanged)
updateDocumentation();
updateUniqueIdToIndexMap();
......@@ -413,8 +412,6 @@ void QtVersionManager::setNewQtVersions(QList<QtVersion *> newVersions, int newD
writeVersionsIntoSettings();
}
///
/// QtVersion
///
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment