pidgin/plugins/disco/xmppdisco.c

changeset 42172
7c2d151b410d
parent 42088
b8c81e2dab8f
child 42453
1c13bc243b7d
--- a/pidgin/plugins/disco/xmppdisco.c	Mon Mar 20 23:06:42 2023 -0500
+++ b/pidgin/plugins/disco/xmppdisco.c	Tue Mar 21 00:39:45 2023 -0500
@@ -711,8 +711,7 @@
 xmpp_disco_unload(GPluginPlugin *plugin, G_GNUC_UNUSED gboolean unload,
                   G_GNUC_UNUSED GError **error)
 {
-	g_hash_table_destroy(iq_callbacks);
-	iq_callbacks = NULL;
+	g_clear_pointer(&iq_callbacks, g_hash_table_destroy);
 
 	purple_signals_disconnect_by_handle(plugin);
 	pidgin_disco_dialogs_destroy_all();

mercurial