summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 16:05:40 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-21 16:05:40 +0000
commit563e5cb7056f1e8144426a8bc1cc8eb187eb11e7 (patch)
treed9884a371ce7ad38dc584c7bc8965071287c3ecc
parenteba00c570137f690ea75b2e05974c241b2f2bdcb (diff)
downloadmana-client-563e5cb7056f1e8144426a8bc1cc8eb187eb11e7.tar.gz
mana-client-563e5cb7056f1e8144426a8bc1cc8eb187eb11e7.tar.bz2
mana-client-563e5cb7056f1e8144426a8bc1cc8eb187eb11e7.tar.xz
mana-client-563e5cb7056f1e8144426a8bc1cc8eb187eb11e7.zip
Plugged memory leak in quit dialog.
-rw-r--r--ChangeLog1
-rw-r--r--src/gui/quitdialog.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f1a55a99..be91d6be 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@
redundant destructor.
* src/resources/monsterdb.cpp: Plugged memory leak in database reader.
* src/resources/spritedef.cpp: Plugged memory leak in sprites.
+ * src/gui/quitdialog.cpp: Plugged memory leak in quit dialog.
2007-10-20 Guillaume Melquiond <guillaume.melquiond@gmail.com>
diff --git a/src/gui/quitdialog.cpp b/src/gui/quitdialog.cpp
index 42c08080..c9d974a6 100644
--- a/src/gui/quitdialog.cpp
+++ b/src/gui/quitdialog.cpp
@@ -92,6 +92,11 @@ QuitDialog::QuitDialog(bool* quitGame, QuitDialog** pointerToMe):
QuitDialog::~QuitDialog()
{
if (mMyPointer) *mMyPointer = NULL;
+ // Optional widgets, so delete them by hand.
+ delete mForceQuit;
+ delete mLogoutQuit;
+ delete mSwitchAccountServer;
+ delete mSwitchCharacter;
}
void