aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Montel <[email protected]>2018-12-11 08:48:55 +0100
committerLaurent Montel <[email protected]>2018-12-11 08:49:06 +0100
commit59f8b5305971705fddaeab647d61ed349bbbc85c (patch)
tree23168e579a6af43feb80dcdd5c390751005d86f7
parent5d620cd60a43b01724f3613bd3c7eab8bb10a694 (diff)
Fix mem leak
-rw-r--r--src/widgets/subscriptiondialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/subscriptiondialog.cpp b/src/widgets/subscriptiondialog.cpp
index 1bfc99d..0e1f2b7 100644
--- a/src/widgets/subscriptiondialog.cpp
+++ b/src/widgets/subscriptiondialog.cpp
@@ -156,6 +156,7 @@ void SubscriptionDialog::showHiddenCollection(bool showHidden)
void SubscriptionDialog::init(const QStringList &mimetypes)
{
+ setAttribute(Qt::WA_DeleteOnClose);
setWindowTitle(i18n("Local Subscriptions"));
QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout(this);