Commit af3029dc authored by Christian Stenger's avatar Christian Stenger

AutoTest: Avoid dangling pointer

Change-Id: I44b4aed459403ad9ea87d3213a6a355b9836b3fb
Reviewed-by: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent 97af2386
......@@ -408,9 +408,12 @@ QList<TestConfiguration *> TestTreeModel::getSelectedTests() const
}
}
foreach (TestConfiguration *config, foundMains.values())
foreach (TestConfiguration *config, foundMains.values()) {
if (!config->unnamedOnly())
result << config;
else
delete config;
}
// get selected Google Tests
QMap<QString, QStringList> proFilesWithEnabledTestSets;
......
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