From a85fa172c236607c28e09a68c133553ef2d0681d Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 30 Jun 2022 13:46:00 +0200 Subject: [PATCH] DesignModeContext: Don't leak context on shutdown Make passed widget a parent of the context. Fixes: QTCREATORBUG-27570 Change-Id: Ifbc9db8d5b3fb95566e2c6b83df9c10d02f7c0e5 Reviewed-by: Eike Ziller --- src/plugins/qmlprojectmanager/qdslandingpage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprojectmanager/qdslandingpage.h b/src/plugins/qmlprojectmanager/qdslandingpage.h index 3447a2bf915..7162705021e 100644 --- a/src/plugins/qmlprojectmanager/qdslandingpage.h +++ b/src/plugins/qmlprojectmanager/qdslandingpage.h @@ -39,7 +39,7 @@ class DesignModeContext : public Core::IContext Q_OBJECT public: - DesignModeContext(QWidget *widget) { setWidget(widget); } + DesignModeContext(QWidget *widget) : Core::IContext(widget) { setWidget(widget); } }; class QdsLandingPageWidget : public QWidget