forked from qt-creator/qt-creator
TargetSettingsPanelWidget: Fix small memory leak
Fix a small memory leak spotted by Denis Mingulov. Task-number: QTCREATORBUG-2338
This commit is contained in:
@@ -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."));
|
||||
|
||||
Reference in New Issue
Block a user