--- a/libpurple/protocols/jabber/caps.c Mon Mar 20 23:06:42 2023 -0500 +++ b/libpurple/protocols/jabber/caps.c Tue Mar 21 00:39:45 2023 -0500 @@ -207,8 +207,7 @@ save_timer = 0; do_jabber_caps_store(NULL); } - g_hash_table_destroy(capstable); - capstable = NULL; + g_clear_pointer(&capstable, g_hash_table_destroy); } typedef struct {