Fix some Game members not being freed after some startup errors (#14561)
This commit is contained in:
@@ -215,8 +215,9 @@ bool ClientLauncher::run(GameStartData &start_data, const Settings &cmd_args)
|
||||
L" " + utf8_to_wide(g_version_hash) +
|
||||
L" [" + wstrgettext("Main Menu") + L"]").c_str());
|
||||
|
||||
try { // This is used for catching disconnects
|
||||
|
||||
#ifdef NDEBUG
|
||||
try {
|
||||
#endif
|
||||
m_rendering_engine->get_gui_env()->clear();
|
||||
|
||||
/*
|
||||
@@ -267,14 +268,8 @@ bool ClientLauncher::run(GameStartData &start_data, const Settings &cmd_args)
|
||||
chat_backend,
|
||||
&reconnect_requested
|
||||
);
|
||||
} //try
|
||||
catch (con::PeerNotFoundException &e) {
|
||||
error_message = gettext("Connection error (timed out?)");
|
||||
errorstream << error_message << std::endl;
|
||||
}
|
||||
|
||||
#ifdef NDEBUG
|
||||
catch (std::exception &e) {
|
||||
} catch (std::exception &e) {
|
||||
error_message = "Some exception: ";
|
||||
error_message.append(debug_describe_exc(e));
|
||||
errorstream << error_message << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user