FIX: crash of login dialog after switch language

Change-Id: I8f0f9249256f9339fb416680a233973f64654768
This commit is contained in:
tao.jin 2023-02-08 15:27:33 +08:00 committed by Lane.Wei
parent d0f2f0b28d
commit 49bc67eed1
1 changed files with 7 additions and 0 deletions

View File

@ -1235,6 +1235,13 @@ void GUI_App::shutdown()
removable_drive_manager()->shutdown();
}
// destroy login dialog
if (login_dlg != nullptr) {
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(": destroy login dialog");
delete login_dlg;
login_dlg = nullptr;
}
if (m_is_recreating_gui) return;
m_is_closing = true;
stop_sync_user_preset();