forked from qt-creator/qt-creator
QtSupport: Fix leak of QtVersion
Change-Id: I70b45f7df322d4cf750664662a8d84946279192d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user