summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mail2/attachdiag.cpp
authorleseb <leseb>2002-06-16 15:34:57 (UTC)
committer leseb <leseb>2002-06-16 15:34:57 (UTC)
commit1b74249e80cf9f33e52fdb7cc96a114e8be85bc1 (patch) (side-by-side diff)
tree679a1a47c9843e8f89dbe0b3bad532ae60187d72 /noncore/unsupported/mail2/attachdiag.cpp
parent4c1300773b986ad5725492cd26743d542ed16311 (diff)
downloadopie-1b74249e80cf9f33e52fdb7cc96a114e8be85bc1.zip
opie-1b74249e80cf9f33e52fdb7cc96a114e8be85bc1.tar.gz
opie-1b74249e80cf9f33e52fdb7cc96a114e8be85bc1.tar.bz2
Fix memory leaks
Diffstat (limited to 'noncore/unsupported/mail2/attachdiag.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/attachdiag.cpp10
1 files changed, 5 insertions, 5 deletions
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();