# HG changeset patch # User Elliott Sales de Andrade # Date 1315520082 0 # Node ID 66876919c0947ad89c9bbceffd4ffb56711257ba # Parent 6c814cf24b0484d71e9541d6417da52ff2e830bb Simplify, don't loop through list twice. diff -r 6c814cf24b04 -r 66876919c094 pidgin/plugins/adiumthemes/message-style.c --- a/pidgin/plugins/adiumthemes/message-style.c Thu Sep 08 22:10:49 2011 +0000 +++ b/pidgin/plugins/adiumthemes/message-style.c Thu Sep 08 22:14:42 2011 +0000 @@ -32,10 +32,8 @@ 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 *