Commit 9cdddd94 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix memory leak

Reviewed-by: Friedemann Kleint
parent 767e6e17
......@@ -183,6 +183,14 @@ BaseQt4ProjectWizardDialog::BaseQt4ProjectWizardDialog(bool showModulesPage,
init(showModulesPage);
}
BaseQt4ProjectWizardDialog::~BaseQt4ProjectWizardDialog()
{
if (m_targetsPage && !m_targetsPage->parent())
delete m_targetsPage;
if (m_modulesPage && !m_modulesPage->parent())
delete m_modulesPage;
}
void BaseQt4ProjectWizardDialog::init(bool showModulesPage)
{
QtVersionManager *vm = QtVersionManager::instance();
......
......@@ -100,6 +100,7 @@ protected:
Utils::ProjectIntroPage *introPage,
int introId = -1,
QWidget *parent = 0);
virtual ~BaseQt4ProjectWizardDialog();
int addModulesPage(int id = -1);
int addTargetsPage(QSet<QString> targets = QSet<QString>(), int id = -1);
......
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