summaryrefslogtreecommitdiff
path: root/pidgin/libpidgin.c
diff options
context:
space:
mode:
authorElliott Sales de Andrade <qulogic@pidgin.im>2021-10-18 02:44:32 -0500
committerElliott Sales de Andrade <qulogic@pidgin.im>2021-10-18 02:44:32 -0500
commiteba14d3f9424ba6a00d93983d84068c7717a2107 (patch)
tree27a60f866e817c7ad4f25bd5ab86f8e9c86b8d38 /pidgin/libpidgin.c
parent5a1bc52b82985f5ad6ef364c48a63c1f8f3b27d6 (diff)
downloadpidgin-eba14d3f9424ba6a00d93983d84068c7717a2107.tar.gz
Close the Debug Window on shutdown
Otherwise, it tries to read prefs after that subsystem is shut down.
Diffstat (limited to 'pidgin/libpidgin.c')
-rw-r--r--pidgin/libpidgin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pidgin/libpidgin.c b/pidgin/libpidgin.c
index 99114b17a1..5002b7107e 100644
--- a/pidgin/libpidgin.c
+++ b/pidgin/libpidgin.c
@@ -289,6 +289,9 @@ pidgin_quit(void)
/* 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_quit(void)
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);