diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/gui/quitdialog.cpp | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -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 |