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>
This commit is contained in:
Tobias Hunger
2017-01-10 17:06:53 +01:00
parent b76af11d80
commit ae0e15fad0

View File

@@ -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