From ae0e15fad066c0fc7e88180b0ad5029ea9025cad Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Tue, 10 Jan 2017 17:06:53 +0100 Subject: [PATCH] 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 Reviewed-by: Eike Ziller --- src/plugins/projectexplorer/targetsettingspanel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp index 69cec0e85a8..17121533018 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