From: Olivier Goffart Date: Sun, 16 Sep 2018 19:52:50 +0000 (+0200) Subject: AccountSetting: Fix Small Memoy leak X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~504 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d8fa8e270f6717a0c6cd5fa123fa763dff67102b;p=nextcloud-desktop.git AccountSetting: Fix Small Memoy leak --- 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);