diff -r f8ecce79cb9a -r d687fda4047d pidgin/gtknotify.c --- a/pidgin/gtknotify.c Thu Feb 11 23:57:10 2021 -0600 +++ b/pidgin/gtknotify.c Fri Feb 12 04:07:08 2021 -0600 @@ -31,6 +31,7 @@ #include "account.h" #include "connection.h" #include "debug.h" +#include "glibcompat.h" #include "prefs.h" #include "pidginstock.h" #include "util.h" @@ -349,8 +350,7 @@ gtk_tree_model_get(GTK_TREE_MODEL(pounce_dialog->treemodel), &iter, PIDGIN_POUNCE_DATA, &pounce_data, -1); - g_list_foreach(list, (GFunc)gtk_tree_path_free, NULL); - g_list_free(list); + g_list_free_full(list, (GDestroyNotify)gtk_tree_path_free); pounces = purple_pounces_get_all(); for (; pounces != NULL; pounces = pounces->next) { @@ -482,8 +482,7 @@ button = bd->button; button->callback(purple_account_get_connection(data->account), row, data->user_data); - g_list_foreach(row, (GFunc)g_free, NULL); - g_list_free(row); + g_list_free_full(row, (GDestroyNotify)g_free); } static void *