--- a/libpurple/protocol.c Tue Oct 26 04:07:42 2021 -0500
+++ b/libpurple/protocol.c Wed Oct 27 02:01:18 2021 -0500
@@ -237,6 +237,10 @@
g_clear_pointer(&priv->id, g_free);
g_clear_pointer(&priv->name, g_free);
g_clear_pointer(&priv->description, g_free);
+ g_clear_pointer(&priv->icon_name, g_free); + g_clear_pointer(&priv->icon_search_path, g_free); + g_clear_pointer(&priv->icon_resource_path, g_free); /* I'm not sure that we can finalize a protocol plugin if an account is
* still using it.. Right now accounts don't ref protocols, but maybe
--- a/libpurple/purplecredentialprovider.c Tue Oct 26 04:07:42 2021 -0500
+++ b/libpurple/purplecredentialprovider.c Wed Oct 27 02:01:18 2021 -0500
@@ -146,6 +146,7 @@
g_clear_pointer(&priv->id, g_free);
g_clear_pointer(&priv->name, g_free);
+ g_clear_pointer(&priv->description, g_free); G_OBJECT_CLASS(purple_credential_provider_parent_class)->finalize(obj);
--- a/pidgin/gtkblist.c Tue Oct 26 04:07:42 2021 -0500
+++ b/pidgin/gtkblist.c Wed Oct 27 02:01:18 2021 -0500
@@ -6507,11 +6507,13 @@
pidgin_blist_update_sort_methods(void)
+ GtkWidget *sort_item = NULL;
+ if(gtkblist == NULL || !PIDGIN_IS_CONTACT_LIST(gtkblist->window)) { @@ -6520,25 +6522,25 @@
for (l = pidgin_blist_sort_methods; l; l = l->next) {
PidginBlistSortMethod *method = NULL;
+ GVariant *value = NULL; method = (PidginBlistSortMethod *)l->data;
- action = g_action_print_detailed_name("blist.sort-method",
- g_variant_new_string(method->id));
+ value = g_variant_new_string(method->id); + action = g_action_print_detailed_name("blist.sort-method", value); item = g_menu_item_new(method->name, action);
+ g_variant_unref(value); g_menu_append_item(menu, item);
/* replace the old submenu with a new one */
- if(PIDGIN_IS_CONTACT_LIST(gtkblist->window)) {
- GtkWidget *item = NULL;
- item = pidgin_contact_list_get_menu_sort_item(PIDGIN_CONTACT_LIST(gtkblist->window));
- gtk_menu_item_set_submenu(GTK_MENU_ITEM(item),
- gtk_menu_new_from_model(G_MENU_MODEL(menu)));
- g_object_unref(G_OBJECT(menu));
+ sort_item = pidgin_contact_list_get_menu_sort_item(PIDGIN_CONTACT_LIST(gtkblist->window)); + gtk_menu_item_set_submenu(GTK_MENU_ITEM(sort_item), + gtk_menu_new_from_model(G_MENU_MODEL(menu)));