pidgin: 2b3e4780: Simplify, don't loop through list twice.

qulogic at pidgin.im qulogic at pidgin.im
Thu Sep 8 22:01:02 EDT 2011


----------------------------------------------------------------------
Revision: 2b3e47800348fa0c34856cc978ec1ac36eae3912
Parent:   d29e854dab88bd851aa115aee8dde3fd56f4b61a
Author:   qulogic at pidgin.im
Date:     09/08/11 18:14:42
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2b3e47800348fa0c34856cc978ec1ac36eae3912

Changelog: 

Simplify, don't loop through list twice.

Changes against parent d29e854dab88bd851aa115aee8dde3fd56f4b61a

  patched  pidgin/plugins/adiumthemes/message-style.c

-------------- next part --------------
============================================================
--- pidgin/plugins/adiumthemes/message-style.c	a4b1dcf7b8fa4488ba7bfd730de6c1b5048f5075
+++ pidgin/plugins/adiumthemes/message-style.c	8b647f36c59c3e184d97266c08987b725f932df0
@@ -32,10 +32,8 @@ glist_free_all_string(GList *list)
 static void
 glist_free_all_string(GList *list)
 {
-	GList *first = list;
-	for (; list; list = g_list_next(list))
+	for (; list; list = g_list_delete_link(list, list))
 		g_free(list->data);
-	g_list_free(first);
 }
 
 static PidginMessageStyle *


More information about the Commits mailing list