summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2010-09-14 17:49:11 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2010-09-14 17:53:54 +0200
commit2acb72146e272f58674c9b59eb193d26aa8b4aaf (patch)
treed17c40788b0ba7f32be3a2daccdf6c138a8cb98e /src
parent32cd92bff9e63ff61e599bb3112bed090de5b291 (diff)
downloadqt-creator-2acb72146e272f58674c9b59eb193d26aa8b4aaf.tar.gz
TargetSettingsPanelWidget: Fix small memory leak
Fix a small memory leak spotted by Denis Mingulov. Task-number: QTCREATORBUG-2338
Diffstat (limited to 'src')
-rw-r--r--src/plugins/projectexplorer/targetsettingspanel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp
index 8ef5beb3d9..b40c86f2c2 100644
--- a/src/plugins/projectexplorer/targetsettingspanel.cpp
+++ b/src/plugins/projectexplorer/targetsettingspanel.cpp
@@ -96,9 +96,9 @@ void TargetSettingsPanelWidget::setupUi()
m_centralWidget = new QStackedWidget(this);
m_selector->setCentralWidget(m_centralWidget);
- // no projects label:
+ // no target label:
m_noTargetLabel = new QWidget;
- QVBoxLayout *noTargetLayout = new QVBoxLayout;
+ QVBoxLayout *noTargetLayout = new QVBoxLayout(m_noTargetLabel);
noTargetLayout->setMargin(0);
QLabel *label = new QLabel(m_noTargetLabel);
label->setText(tr("No target defined."));