From 2acb72146e272f58674c9b59eb193d26aa8b4aaf Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Tue, 14 Sep 2010 17:49:11 +0200
Subject: [PATCH] TargetSettingsPanelWidget: Fix small memory leak

Fix a small memory leak spotted by Denis Mingulov.

Task-number: QTCREATORBUG-2338
---
 src/plugins/projectexplorer/targetsettingspanel.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp
index 8ef5beb3d93..b40c86f2c23 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."));
-- 
GitLab