author | leseb <leseb> | 2002-06-16 15:34:57 (UTC) |
---|---|---|
committer | leseb <leseb> | 2002-06-16 15:34:57 (UTC) |
commit | 1b74249e80cf9f33e52fdb7cc96a114e8be85bc1 (patch) (unidiff) | |
tree | 679a1a47c9843e8f89dbe0b3bad532ae60187d72 /noncore/unsupported/mail2/rename.cpp | |
parent | 4c1300773b986ad5725492cd26743d542ed16311 (diff) | |
download | opie-1b74249e80cf9f33e52fdb7cc96a114e8be85bc1.zip opie-1b74249e80cf9f33e52fdb7cc96a114e8be85bc1.tar.gz opie-1b74249e80cf9f33e52fdb7cc96a114e8be85bc1.tar.bz2 |
Fix memory leaks
Diffstat (limited to 'noncore/unsupported/mail2/rename.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/unsupported/mail2/rename.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/noncore/unsupported/mail2/rename.cpp b/noncore/unsupported/mail2/rename.cpp index 8c2fde1..627db0b 100644 --- a/noncore/unsupported/mail2/rename.cpp +++ b/noncore/unsupported/mail2/rename.cpp | |||
@@ -12,9 +12,9 @@ QString Rename::rename(const QString &on, QWidget *parent) | |||
12 | { | 12 | { |
13 | Rename *rename = new Rename(parent, 0, true); | 13 | Rename rename(parent, 0, true); |
14 | rename->oldName->setText(on); | 14 | rename.oldName->setText(on); |
15 | rename->newName->setText(on); | 15 | rename.newName->setText(on); |
16 | rename->newName->setFocus(); | 16 | rename.newName->setFocus(); |
17 | 17 | ||
18 | if (rename->exec() == QDialog::Accepted) { | 18 | if (rename.exec() == QDialog::Accepted) { |
19 | return rename->newName->text(); | 19 | return rename.newName->text(); |
20 | } | 20 | } |
@@ -26,10 +26,10 @@ QString Rename::getText(const QString &caption, const QString &secondLabel, QWid | |||
26 | { | 26 | { |
27 | Rename *rename = new Rename(parent, 0, true); | 27 | Rename rename(parent, 0, true); |
28 | rename->firstLabel->hide(); | 28 | rename.firstLabel->hide(); |
29 | rename->oldName->hide(); | 29 | rename.oldName->hide(); |
30 | rename->setCaption(caption); | 30 | rename.setCaption(caption); |
31 | rename->secondLabel->setText(secondLabel); | 31 | rename.secondLabel->setText(secondLabel); |
32 | 32 | ||
33 | if (rename->exec() == QDialog::Accepted) { | 33 | if (rename.exec() == QDialog::Accepted) { |
34 | return rename->newName->text(); | 34 | return rename.newName->text(); |
35 | } | 35 | } |