Commit f82bcf22 authored by Daniel Teske's avatar Daniel Teske
Browse files

QtVersionManager: Fix memory leak on restoring installer versions



Change-Id: I71fe7284fd3397baf364679dc034c04ef8b84a74
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 21793181
......@@ -310,6 +310,7 @@ void QtVersionManager::updateFromInstaller(bool emitSignal)
qDebug() << " Qt version found with same autodetection source" << autoDetectionSource << " => Migrating id:" << id;
m_versions.remove(id);
qtversionMap[QLatin1String("Id")] = id;
delete v;
if (BaseQtVersion *qtv = factory->restore(type, qtversionMap)) {
Q_ASSERT(qtv->isAutodetected());
......
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