forked from qt-creator/qt-creator
Fix some memory leaks
Found by Address Sanitizer. Change-Id: I989da71e24d737e36a88b83a1f382ce2d67e3307 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -309,7 +309,7 @@ public:
|
||||
setTypeDisplayName("Test Tool Chain");
|
||||
}
|
||||
|
||||
static QList<TTC *> toolChains();
|
||||
static QList<TTC *> toolChains() { return m_toolChains; }
|
||||
static bool hasToolChains() { return !m_toolChains.isEmpty(); }
|
||||
|
||||
Abi targetAbi() const override { return Abi::hostAbi(); }
|
||||
@@ -507,6 +507,11 @@ void ProjectExplorerPlugin::testToolChainMerging()
|
||||
Utils::toSet(ops.toRegister + ops.toDemote + ops.toDelete));
|
||||
}
|
||||
|
||||
void ProjectExplorerPlugin::deleteTestToolchains()
|
||||
{
|
||||
qDeleteAll(TTC::toolChains());
|
||||
}
|
||||
|
||||
} // namespace ProjectExplorer
|
||||
|
||||
#endif // WITH_TESTS
|
||||
|
||||
Reference in New Issue
Block a user