From a4821447e2454ccb6435ca45524d6e7e9756f069 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 6 Oct 2013 23:25:25 +0300 Subject: Fix crash if opened char select dialog and whole game closed by X. --- src/gui/windows/charselectdialog.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index f34f53d28..1c960b11c 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -198,6 +198,7 @@ CharSelectDialog::CharSelectDialog(LoginData *const data): CharSelectDialog::~CharSelectDialog() { + Net::getCharServerHandler()->clear(); } void CharSelectDialog::action(const gcn::ActionEvent &event) -- cgit v1.2.3-70-g09d2