aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/debuggerplugin.cpp
diff options
context:
space:
mode:
authorFilipe Azevedo <[email protected]>2017-09-29 12:24:39 +0200
committerFilipe Azevedo <[email protected]>2017-10-13 16:43:35 +0000
commite1ff09f3323774dddfb44a954539da8e7b2e224e (patch)
tree735004a461d615e9f5d1633fd6989d7fb142af12 /src/plugins/debugger/debuggerplugin.cpp
parente2bacb1dc93a6bfe99b88ebb46db4a5f6198592d (diff)
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 <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerplugin.cpp')
-rw-r--r--src/plugins/debugger/debuggerplugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggerplugin.cpp b/src/plugins/debugger/debuggerplugin.cpp
index dc3595a8c81..9d9c14833f2 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 "