From 563e5cb7056f1e8144426a8bc1cc8eb187eb11e7 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Sun, 21 Oct 2007 16:05:40 +0000 Subject: Plugged memory leak in quit dialog. --- src/gui/quitdialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/quitdialog.cpp') 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 -- cgit v1.2.3-60-g2f50