From e1ff09f3323774dddfb44a954539da8e7b2e224e Mon Sep 17 00:00:00 2001 From: Filipe Azevedo Date: Fri, 29 Sep 2017 12:24:39 +0200 Subject: Fix memory leak This is not really a leak because they are owned by the main window. But they accumulate in memory for nothing. Change-Id: I521f3c9e3e535cd22ae27c974257866d1d6403b7 Reviewed-by: hjk --- src/plugins/debugger/debuggerplugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp index dc3595a8c8..9d9c14833f 100644 --- a/src/plugins/debugger/debuggerplugin.cpp +++ b/src/plugins/debugger/debuggerplugin.cpp @@ -3426,6 +3426,7 @@ static BuildConfiguration::BuildType startupBuildType() void showCannotStartDialog(const QString &text) { QMessageBox *errorDialog = new QMessageBox(ICore::mainWindow()); + errorDialog->setAttribute(Qt::WA_DeleteOnClose); errorDialog->setIcon(QMessageBox::Warning); errorDialog->setWindowTitle(text); errorDialog->setText(DebuggerPlugin::tr("Cannot start %1 without a project. Please open the project " -- cgit v1.2.1