diff -r f8ecce79cb9a -r d687fda4047d pidgin/gtklog.c --- a/pidgin/gtklog.c Thu Feb 11 23:57:10 2021 -0600 +++ b/pidgin/gtklog.c Fri Feb 12 04:07:08 2021 -0600 @@ -28,6 +28,7 @@ #include "account.h" #include "debug.h" +#include "glibcompat.h" #include "log.h" #include "notify.h" #include "request.h" @@ -216,8 +217,7 @@ purple_request_close_with_handle(lv); - g_list_foreach(lv->logs, (GFunc)purple_log_free, NULL); - g_list_free(lv->logs); + g_list_free_full(lv->logs, (GDestroyNotify)purple_log_free); g_free(lv->search); g_free(lv);