[Commits] utils.c 1.36.2.201 1.36.2.202
mones at claws-mail.org
mones at claws-mail.org
Wed Oct 10 01:58:45 CEST 2012
Update of /home/claws-mail/claws/src/common
In directory srv:/tmp/cvs-serv24032/src/common
Modified Files:
Tag: gtk2
utils.c
Log Message:
2012-10-09 [mones] 3.8.1cvs86
* doc/man/claws-mail.1
* src/compose.c
* src/common/utils.c
New extra headers feature for adding user-defined
extra headers to the combobox in the compose window
Headers are stablished in 'extraheaderrc', one per
line with a final colon
Index: utils.c
===================================================================
RCS file: /home/claws-mail/claws/src/common/utils.c,v
retrieving revision 1.36.2.201
retrieving revision 1.36.2.202
diff -u -d -r1.36.2.201 -r1.36.2.202
--- utils.c 12 Sep 2012 09:23:13 -0000 1.36.2.201
+++ utils.c 9 Oct 2012 23:58:43 -0000 1.36.2.202
@@ -258,10 +258,14 @@
void slist_free_strings(GSList *list)
{
+#if GLIB_CHECK_VERSION(2,28,0)
+ g_slist_free_full(list, (GDestroyNotify)g_free);
+#else
while (list != NULL) {
g_free(list->data);
list = list->next;
}
+#endif
}
static void hash_free_strings_func(gpointer key, gpointer value, gpointer data)
More information about the Commits
mailing list