From 9b493ccece436f089b74cf35ea2fa2634f8d405d Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 14 Dec 2023 14:53:23 +0100 Subject: [PATCH] ProjectExplorer: Don't leak runconfig's GlobalOrProjectAspects Fixes: QTCREATORBUG-30075 Change-Id: Ic82f8257521f72d6e3ccd436d17bff8434f11a1d Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/runconfiguration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/runconfiguration.cpp b/src/plugins/projectexplorer/runconfiguration.cpp index 5ae96e446ed..30fda9b0442 100644 --- a/src/plugins/projectexplorer/runconfiguration.cpp +++ b/src/plugins/projectexplorer/runconfiguration.cpp @@ -601,7 +601,7 @@ RunConfiguration *RunConfigurationFactory::create(Target *target) const // Add the universal aspects. for (const RunConfiguration::AspectFactory &factory : theAspectFactories) - rc->registerAspect(factory(target)); + rc->registerAspect(factory(target), true); return rc; }