AccountSetting: Fix Small Memoy leak

This commit is contained in:
Olivier Goffart 2018-09-16 21:52:50 +02:00
parent a50eee8d8a
commit 413ff1c7a0

View File

@ -362,6 +362,7 @@ void AccountSettings::slotAddFolder()
folderMan->setSyncEnabled(false); // do not start more syncs.
FolderWizard *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);