pidgin/pidginlog.c

changeset 39897
16b440d4ab36
parent 39824
aefdb7ab2475
child 40197
75ffd76260fc
--- a/pidgin/pidginlog.c	Tue Oct 01 01:38:40 2019 +0000
+++ b/pidgin/pidginlog.c	Tue Oct 01 01:38:06 2019 -0400
@@ -267,8 +267,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);
 

mercurial