TargetSettingsPanelWidget: Fix small memory leak

Fix a small memory leak spotted by Denis Mingulov.

Task-number: QTCREATORBUG-2338
This commit is contained in:
Tobias Hunger
2010-09-14 17:49:11 +02:00
parent 32cd92bff9
commit 2acb72146e

View File

@@ -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."));