pidgin/pidgin

Close the Debug Window on shutdown

2021-10-18, Elliott Sales de Andrade
19acd30c5000
Parents cbfcefb3a34d
Children 1653402dd94e
Close the Debug Window on shutdown

Otherwise, it tries to read prefs after that subsystem is shut down.
--- a/pidgin/libpidgin.c Mon Oct 18 02:44:31 2021 -0500
+++ b/pidgin/libpidgin.c Mon Oct 18 02:44:32 2021 -0500
@@ -289,6 +289,9 @@
/* Uninit */
PurpleDebugUi *ui;
+ /* Be sure to close all windows that are not attached to anything
+ * (e.g., the debug window), or they may access things after they are
+ * shut down. */
pidgin_notify_uninit();
pidgin_commands_uninit();
pidgin_conversations_uninit();
@@ -298,6 +301,7 @@
pidgin_connection_uninit();
pidgin_accounts_uninit();
pidgin_xfers_uninit();
+ pidgin_debug_window_hide();
ui = purple_debug_get_ui();
purple_debug_set_ui(NULL);
g_object_unref(ui);