Commit 38484d46 authored by Christian Stenger's avatar Christian Stenger

AutoTest: Correctly release resources

Change-Id: I8023c1468f9cf9cc0c549a466b298e19a6b40a15
Reviewed-by: Oliver Wolff's avatarOliver Wolff <oliver.wolff@qt.io>
parent 0b527de5
......@@ -241,6 +241,12 @@ void QtTestParser::init(const QStringList &filesToParse)
CppParser::init(filesToParse);
}
void QtTestParser::release()
{
m_testCaseNames.clear();
CppParser::release();
}
bool QtTestParser::processDocument(QFutureInterface<TestParseResultPtr> futureInterface,
const QString &fileName)
{
......
......@@ -41,6 +41,7 @@ class QtTestParser : public CppParser
{
public:
void init(const QStringList &filesToParse) override;
void release() override;
bool processDocument(QFutureInterface<TestParseResultPtr> futureInterface,
const QString &fileName) override;
......
......@@ -224,6 +224,13 @@ void QuickTestParser::init(const QStringList &filesToParse)
CppParser::init(filesToParse);
}
void QuickTestParser::release()
{
m_qmlSnapshot = QmlJS::Snapshot();
m_proFilesForQmlFiles.clear();
CppParser::release();
}
bool QuickTestParser::processDocument(QFutureInterface<TestParseResultPtr> futureInterface,
const QString &fileName)
{
......
......@@ -43,6 +43,7 @@ class QuickTestParser : public CppParser
{
public:
void init(const QStringList &filesToParse) override;
void release() override;
bool processDocument(QFutureInterface<TestParseResultPtr> futureInterface,
const QString &fileName) override;
private:
......
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