QtSupport: Fix leak of QtVersion

Change-Id: I70b45f7df322d4cf750664662a8d84946279192d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2024-09-27 13:46:39 +02:00
parent 1835c9db67
commit e4dfa36940

View File

@@ -376,6 +376,7 @@ void QtVersionManagerImpl::updateFromInstaller(bool emitSignal)
qCDebug(log) << " removing version" << qtVersion->detectionSource(); qCDebug(log) << " removing version" << qtVersion->detectionSource();
m_versions.remove(qtVersion->uniqueId()); m_versions.remove(qtVersion->uniqueId());
removed << qtVersion->uniqueId(); removed << qtVersion->uniqueId();
delete qtVersion;
} }
} }
} }