diff -r 94cb5cc3862a -r 16b440d4ab36 pidgin/gtkconv.c --- a/pidgin/gtkconv.c Tue Oct 01 01:38:40 2019 +0000 +++ b/pidgin/gtkconv.c Tue Oct 01 01:38:06 2019 -0400 @@ -236,8 +236,7 @@ { PidginConversation *gtkconv = data; GList *list = g_list_copy(gtkconv->convs); - g_list_foreach(list, (GFunc)g_object_unref, NULL); - g_list_free(list); + g_list_free_full(list, g_object_unref); return FALSE; } @@ -4661,8 +4660,7 @@ } gtkconv->send_history = g_list_first(gtkconv->send_history); - g_list_foreach(gtkconv->send_history, (GFunc)g_free, NULL); - g_list_free(gtkconv->send_history); + g_list_free_full(gtkconv->send_history, g_free); if (gtkconv->attach_timer) { g_source_remove(gtkconv->attach_timer);