Commit 082243fd authored by Jarek Kobus's avatar Jarek Kobus Committed by hjk

Fix memory leaks (lacking destructors for uis)

Change-Id: I07c2708d727d59286b0d625a4c0c318f18b03b93
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent c9ea9ad5
......@@ -1040,6 +1040,7 @@ StartRemoteEngineDialog::StartRemoteEngineDialog(QWidget *parent) :
StartRemoteEngineDialog::~StartRemoteEngineDialog()
{
delete m_ui;
}
QString StartRemoteEngineDialog::host() const
......
......@@ -60,6 +60,11 @@ RemoteAdditionDialog::RemoteAdditionDialog(QWidget *parent) :
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
}
RemoteAdditionDialog::~RemoteAdditionDialog()
{
delete m_ui;
}
QString RemoteAdditionDialog::remoteName() const
{
return m_ui->nameEdit->text();
......
......@@ -56,6 +56,7 @@ class RemoteAdditionDialog : public QDialog
public:
explicit RemoteAdditionDialog(QWidget *parent = 0);
~RemoteAdditionDialog();
QString remoteName() const;
QString remoteUrl() const;
......
......@@ -409,6 +409,11 @@ RvctToolChainConfigWidget::RvctToolChainConfigWidget(RvctToolChain *tc) :
setFromToolChain();
}
RvctToolChainConfigWidget::~RvctToolChainConfigWidget()
{
delete m_ui;
}
void RvctToolChainConfigWidget::apply()
{
RvctToolChain *tc = static_cast<RvctToolChain *>(toolChain());
......
......@@ -143,6 +143,7 @@ class RvctToolChainConfigWidget : public ProjectExplorer::ToolChainConfigWidget
public:
RvctToolChainConfigWidget(RvctToolChain *tc);
~RvctToolChainConfigWidget();
void apply();
void discard() { setFromToolChain(); }
......
......@@ -319,6 +319,11 @@ WinscwToolChainConfigWidget::WinscwToolChainConfigWidget(WinscwToolChain *tc) :
discard();
}
WinscwToolChainConfigWidget::~WinscwToolChainConfigWidget()
{
delete m_ui;
}
void WinscwToolChainConfigWidget::apply()
{
WinscwToolChain *tc = static_cast<WinscwToolChain *>(toolChain());
......
......@@ -105,6 +105,7 @@ class WinscwToolChainConfigWidget : public ProjectExplorer::ToolChainConfigWidge
public:
WinscwToolChainConfigWidget(WinscwToolChain *);
~WinscwToolChainConfigWidget();
void apply();
void discard();
......
......@@ -170,6 +170,11 @@ SuppressionDialog::SuppressionDialog(MemcheckErrorView *view)
setWindowTitle(tr("Save Suppression"));
}
SuppressionDialog::~SuppressionDialog()
{
delete m_ui;
}
bool SuppressionDialog::shouldShow() const
{
return !m_errors.isEmpty();
......
......@@ -58,6 +58,7 @@ class SuppressionDialog : public QDialog
public:
SuppressionDialog(MemcheckErrorView *view);
~SuppressionDialog();
virtual void accept();
virtual void reject();
......
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