From 1b74249e80cf9f33e52fdb7cc96a114e8be85bc1 Mon Sep 17 00:00:00 2001 From: leseb Date: Sun, 16 Jun 2002 15:34:57 +0000 Subject: Fix memory leaks --- (limited to 'noncore/unsupported/mail2/attachdiag.cpp') diff --git a/noncore/unsupported/mail2/attachdiag.cpp b/noncore/unsupported/mail2/attachdiag.cpp index bedf3c4..36e1948 100644 --- a/noncore/unsupported/mail2/attachdiag.cpp +++ b/noncore/unsupported/mail2/attachdiag.cpp @@ -57,12 +57,12 @@ void AttachDiag::fileSelected(const DocLnk &file) DocLnk AttachDiag::getFile(QWidget *parent) { - AttachDiag *attach = new AttachDiag(parent, 0, true); - attach->showMaximized(); - attach->show(); + AttachDiag attach(parent, 0, true); + attach.showMaximized(); + attach.show(); - if (QDialog::Accepted == attach->exec()) { - return attach->currentFile; + if (QDialog::Accepted == attach.exec()) { + return attach.currentFile; } return DocLnk(); -- cgit v0.9.0.2