aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/targetsettingspanel.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-01-10 17:06:53 +0100
committerTobias Hunger <tobias.hunger@qt.io>2017-01-11 08:36:06 +0000
commitae0e15fad066c0fc7e88180b0ad5029ea9025cad (patch)
treec0553961e871618f61bd6fe2ba2d0e5b2a12ee2f /src/plugins/projectexplorer/targetsettingspanel.cpp
parentb76af11d80782aea5d58b2ece577d9e3630c227c (diff)
ProjectExplorer: Do not leak targetsetuppages
Leaving these around can lead to a crash when updating a kit after the project has been closed. Task-number: QTCREATORBUG-17571 Change-Id: Ie4be99a665b072f3c920e3f365f5b20949436850 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/targetsettingspanel.cpp')
-rw-r--r--src/plugins/projectexplorer/targetsettingspanel.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp
index 69cec0e85a..1712153301 100644
--- a/src/plugins/projectexplorer/targetsettingspanel.cpp
+++ b/src/plugins/projectexplorer/targetsettingspanel.cpp
@@ -726,6 +726,10 @@ TargetGroupItemPrivate::TargetGroupItemPrivate(TargetGroupItem *q, Project *proj
TargetGroupItemPrivate::~TargetGroupItemPrivate()
{
disconnect();
+
+ delete m_noKitLabel;
+ delete m_configurePage;
+ delete m_configuredPage;
}
QVariant TargetGroupItem::data(int column, int role) const