forked from qt-creator/qt-creator
GenericProject: fix memory leak
Change-Id: I5f5811229c6311fa19432a5018a1da33ead7894a Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -225,6 +225,11 @@ GenericProject::GenericProject(const Utils::FileName &fileName) :
|
||||
GenericProject::~GenericProject()
|
||||
{
|
||||
delete m_cppCodeModelUpdater;
|
||||
m_filesIDocument->deleteLater();
|
||||
m_includesIDocument->deleteLater();
|
||||
m_configIDocument->deleteLater();
|
||||
m_cxxFlagsIDocument->deleteLater();
|
||||
m_cFlagsIDocument->deleteLater();
|
||||
}
|
||||
|
||||
static QStringList readLines(const QString &absoluteFileName)
|
||||
|
||||
@@ -74,11 +74,11 @@ private:
|
||||
QString m_configFileName;
|
||||
QString m_cxxflagsFileName;
|
||||
QString m_cflagsFileName;
|
||||
ProjectExplorer::ProjectDocument *m_filesIDocument;
|
||||
ProjectExplorer::ProjectDocument *m_includesIDocument;
|
||||
ProjectExplorer::ProjectDocument *m_configIDocument;
|
||||
ProjectExplorer::ProjectDocument *m_cxxFlagsIDocument;
|
||||
ProjectExplorer::ProjectDocument *m_cFlagsIDocument;
|
||||
ProjectExplorer::ProjectDocument *m_filesIDocument = nullptr;
|
||||
ProjectExplorer::ProjectDocument *m_includesIDocument = nullptr;
|
||||
ProjectExplorer::ProjectDocument *m_configIDocument = nullptr;
|
||||
ProjectExplorer::ProjectDocument *m_cxxFlagsIDocument = nullptr;
|
||||
ProjectExplorer::ProjectDocument *m_cFlagsIDocument = nullptr;
|
||||
QStringList m_rawFileList;
|
||||
QStringList m_files;
|
||||
QHash<QString, QString> m_rawListEntries;
|
||||
@@ -90,7 +90,7 @@ private:
|
||||
CppTools::CppProjectUpdater *m_cppCodeModelUpdater = nullptr;
|
||||
|
||||
ProjectExplorer::Target *m_activeTarget = nullptr;
|
||||
Utils::FileSystemWatcher * const m_deployFileWatcher;
|
||||
Utils::FileSystemWatcher * const m_deployFileWatcher = nullptr;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user