diff options
Diffstat (limited to 'src/plugins/autotest/testcodeparser.cpp')
| -rw-r--r-- | src/plugins/autotest/testcodeparser.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp index 584d622527..857c16b25f 100644 --- a/src/plugins/autotest/testcodeparser.cpp +++ b/src/plugins/autotest/testcodeparser.cpp @@ -76,6 +76,7 @@ TestCodeParser::TestCodeParser(TestTreeModel *parent) this, [this] (int index) { emit testParseResultReady(m_futureWatcher.resultAt(index)); }); + connect(this, &TestCodeParser::parsingFinished, this, &TestCodeParser::releaseParserInternals); } TestCodeParser::~TestCodeParser() @@ -425,5 +426,11 @@ void TestCodeParser::onPartialParsingFinished() } } +void TestCodeParser::releaseParserInternals() +{ + for (ITestParser *parser : m_testCodeParsers) + parser->release(); +} + } // namespace Internal } // namespace Autotest |
