[Commits] utils.c 1.36.2.206 1.36.2.207 utils.h 1.20.2.81 1.20.2.82
mones at claws-mail.org
mones at claws-mail.org
Fri Oct 12 17:13:20 CEST 2012
Update of /home/claws-mail/claws/src/common
In directory srv:/tmp/cvs-serv12428/src/common
Modified Files:
Tag: gtk2
utils.c utils.h
Log Message:
2012-10-12 [mones] 3.8.1cvs98
* src/compose.c
* src/grouplistdialog.c
* src/imap.c
* src/news_gtk.c
* src/procmime.c
* src/procmsg.c
* src/common/utils.c
* src/common/utils.h
* src/etpan/imap-thread.c
New slist_free_strings_full wrapper for g_slist_free_full
and simplify calls where it was being used
Index: utils.c
===================================================================
RCS file: /home/claws-mail/claws/src/common/utils.c,v
retrieving revision 1.36.2.206
retrieving revision 1.36.2.207
diff -u -d -r1.36.2.206 -r1.36.2.207
--- utils.c 12 Oct 2012 12:21:29 -0000 1.36.2.206
+++ utils.c 12 Oct 2012 15:13:17 -0000 1.36.2.207
@@ -264,6 +264,19 @@
}
}
+void slist_free_strings_full(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;
+ }
+ g_slist_free(list);
+#endif
+}
+
static void hash_free_strings_func(gpointer key, gpointer value, gpointer data)
{
g_free(key);
Index: utils.h
===================================================================
RCS file: /home/claws-mail/claws/src/common/utils.h,v
retrieving revision 1.20.2.81
retrieving revision 1.20.2.82
diff -u -d -r1.20.2.81 -r1.20.2.82
--- utils.h 12 Oct 2012 10:29:00 -0000 1.20.2.81
+++ utils.h 12 Oct 2012 15:13:17 -0000 1.20.2.82
@@ -278,6 +278,7 @@
void list_free_strings (GList *list);
void slist_free_strings (GSList *list);
+void slist_free_strings_full (GSList *list);
void hash_free_strings (GHashTable *table);
More information about the Commits
mailing list