From d8fa8e270f6717a0c6cd5fa123fa763dff67102b Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Sun, 16 Sep 2018 21:52:50 +0200 Subject: [PATCH] AccountSetting: Fix Small Memoy leak --- src/gui/accountsettings.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index e2676b812..ae0139ab9 100644 --- a/src/gui/accountsettings.cpp +++ b/src/gui/accountsettings.cpp @@ -481,6 +481,7 @@ void AccountSettings::slotAddFolder() folderMan->setSyncEnabled(false); // do not start more syncs. auto *folderWizard = new FolderWizard(_accountState->account(), this); + folderWizard->setAttribute(Qt::WA_DeleteOnClose); connect(folderWizard, &QDialog::accepted, this, &AccountSettings::slotFolderWizardAccepted); connect(folderWizard, &QDialog::rejected, this, &AccountSettings::slotFolderWizardRejected); -- 2.30.2