[Commits] compose.c 1.382.2.616 1.382.2.617 grouplistdialog.c 1.14.2.34 1.14.2.35 imap.c 1.179.2.267 1.179.2.268 news_gtk.c 1.2.2.36 1.2.2.37 procmime.c 1.49.2.153 1.49.2.154 procmsg.c 1.150.2.130 1.150.2.131
mones at claws-mail.org
mones at claws-mail.org
Fri Oct 12 17:13:19 CEST 2012
Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv12428/src
Modified Files:
Tag: gtk2
compose.c grouplistdialog.c imap.c news_gtk.c procmime.c
procmsg.c
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: imap.c
===================================================================
RCS file: /home/claws-mail/claws/src/imap.c,v
retrieving revision 1.179.2.267
retrieving revision 1.179.2.268
diff -u -d -r1.179.2.267 -r1.179.2.268
--- imap.c 4 Oct 2012 10:00:28 -0000 1.179.2.267
+++ imap.c 12 Oct 2012 15:13:16 -0000 1.179.2.268
@@ -1379,8 +1379,7 @@
if (list_set) {
ok = imap_set_message_flags(session,
IMAP_FOLDER_ITEM(item), &numlist, 0, list_set, TRUE);
- slist_free_strings(list_set);
- g_slist_free(list_set);
+ slist_free_strings_full(list_set);
if (ok != MAILIMAP_NO_ERROR) {
return;
}
@@ -1395,8 +1394,7 @@
if (list_unset) {
ok = imap_set_message_flags(session,
IMAP_FOLDER_ITEM(item), &numlist, 0, list_unset, FALSE);
- slist_free_strings(list_unset);
- g_slist_free(list_unset);
+ slist_free_strings_full(list_unset);
if (ok != MAILIMAP_NO_ERROR) {
return;
}
@@ -3312,8 +3310,7 @@
tags = carray_get(env_list, i+1);
msginfo = imap_envelope_from_lep(info, item);
if (msginfo == NULL) {
- slist_free_strings(tags);
- g_slist_free(tags);
+ slist_free_strings_full(tags);
continue;
}
g_slist_free(msginfo->tags);
@@ -3336,8 +3333,7 @@
}
if (msginfo->tags)
msginfo->tags = g_slist_reverse(msginfo->tags);
- slist_free_strings(tags);
- g_slist_free(tags);
+ slist_free_strings_full(tags);
msginfo->folder = item;
if (!newlist)
llast = newlist = g_slist_append(newlist, msginfo);
@@ -3821,8 +3817,7 @@
static void imap_free_capabilities(IMAPSession *session)
{
- slist_free_strings(session->capability);
- g_slist_free(session->capability);
+ slist_free_strings_full(session->capability);
session->capability = NULL;
}
@@ -5113,8 +5108,7 @@
GINT_TO_POINTER(id));
g_free(real_tag);
}
- slist_free_strings(tags);
- g_slist_free(tags);
+ slist_free_strings_full(tags);
}
}
Index: compose.c
===================================================================
RCS file: /home/claws-mail/claws/src/compose.c,v
retrieving revision 1.382.2.616
retrieving revision 1.382.2.617
diff -u -d -r1.382.2.616 -r1.382.2.617
--- compose.c 12 Oct 2012 10:28:59 -0000 1.382.2.616
+++ compose.c 12 Oct 2012 15:13:14 -0000 1.382.2.617
@@ -2963,8 +2963,7 @@
ref_id_list = g_slist_remove
(ref_id_list, ref_id_list->next->data);
} else {
- slist_free_strings(ref_id_list);
- g_slist_free(ref_id_list);
+ slist_free_strings_full(ref_id_list);
return NULL;
}
} else
@@ -2978,8 +2977,7 @@
g_string_append_printf(new_ref, "<%s>", (gchar *)cur->data);
}
- slist_free_strings(ref_id_list);
- g_slist_free(ref_id_list);
+ slist_free_strings_full(ref_id_list);
new_ref_str = new_ref->str;
g_string_free(new_ref, FALSE);
@@ -3354,8 +3352,7 @@
g_free(addr);
}
- slist_free_strings(cc_list);
- g_slist_free(cc_list);
+ slist_free_strings_full(cc_list);
}
g_free(ac_email);
@@ -4843,12 +4840,10 @@
gchar **strptr;
/* free to and newsgroup list */
- slist_free_strings(compose->to_list);
- g_slist_free(compose->to_list);
+ slist_free_strings_full(compose->to_list);
compose->to_list = NULL;
- slist_free_strings(compose->newsgroup_list);
- g_slist_free(compose->newsgroup_list);
+ slist_free_strings_full(compose->newsgroup_list);
compose->newsgroup_list = NULL;
/* search header entries for to and newsgroup entries */
@@ -8535,15 +8530,11 @@
* however this may change. */
address_completion_end(compose->window);
- slist_free_strings(compose->to_list);
- g_slist_free(compose->to_list);
- slist_free_strings(compose->newsgroup_list);
- g_slist_free(compose->newsgroup_list);
- slist_free_strings(compose->header_list);
- g_slist_free(compose->header_list);
+ slist_free_strings_full(compose->to_list);
+ slist_free_strings_full(compose->newsgroup_list);
+ slist_free_strings_full(compose->header_list);
- slist_free_strings(extra_headers);
- g_slist_free(extra_headers);
+ slist_free_strings_full(extra_headers);
extra_headers = NULL;
compose->header_list = compose->newsgroup_list = compose->to_list = NULL;
Index: procmsg.c
===================================================================
RCS file: /home/claws-mail/claws/src/procmsg.c,v
retrieving revision 1.150.2.130
retrieving revision 1.150.2.131
diff -u -d -r1.150.2.130 -r1.150.2.131
--- procmsg.c 26 Sep 2012 07:39:32 -0000 1.150.2.130
+++ procmsg.c 12 Oct 2012 15:13:16 -0000 1.150.2.131
@@ -1431,8 +1431,7 @@
g_free(msginfo->extradata->account_login);
g_free(msginfo->extradata);
}
- slist_free_strings(msginfo->references);
- g_slist_free(msginfo->references);
+ slist_free_strings_full(msginfo->references);
g_slist_free(msginfo->tags);
g_free(msginfo->plaintext_file);
@@ -1642,10 +1641,8 @@
procmime_mimeinfo_free_all(mimeinfo);
g_free(from);
g_free(smtpserver);
- slist_free_strings(to_list);
- g_slist_free(to_list);
- slist_free_strings(newsgroup_list);
- g_slist_free(newsgroup_list);
+ slist_free_strings_full(to_list);
+ slist_free_strings_full(newsgroup_list);
g_free(savecopyfolder);
g_free(replymessageid);
g_free(fwdmessageid);
@@ -1884,10 +1881,8 @@
g_free(from);
g_free(smtpserver);
- slist_free_strings(to_list);
- g_slist_free(to_list);
- slist_free_strings(newsgroup_list);
- g_slist_free(newsgroup_list);
+ slist_free_strings_full(to_list);
+ slist_free_strings_full(newsgroup_list);
g_free(savecopyfolder);
g_free(replymessageid);
g_free(fwdmessageid);
Index: news_gtk.c
===================================================================
RCS file: /home/claws-mail/claws/src/news_gtk.c,v
retrieving revision 1.2.2.36
retrieving revision 1.2.2.37
diff -u -d -r1.2.2.36 -r1.2.2.37
--- news_gtk.c 7 Jul 2012 07:09:28 -0000 1.2.2.36
+++ news_gtk.c 12 Oct 2012 15:13:16 -0000 1.2.2.37
@@ -231,8 +231,7 @@
gtk_cmclist_thaw(GTK_CMCLIST(ctree));
- slist_free_strings(new_subscr);
- g_slist_free(new_subscr);
+ slist_free_strings_full(new_subscr);
folder_write_list();
}
Index: grouplistdialog.c
===================================================================
RCS file: /home/claws-mail/claws/src/grouplistdialog.c,v
retrieving revision 1.14.2.34
retrieving revision 1.14.2.35
diff -u -d -r1.14.2.34 -r1.14.2.35
--- grouplistdialog.c 7 Jul 2012 07:09:27 -0000 1.14.2.34
+++ grouplistdialog.c 12 Oct 2012 15:13:16 -0000 1.14.2.35
@@ -123,8 +123,7 @@
gtk_widget_hide(dialog);
if (!ack) {
- slist_free_strings(subscribed);
- g_slist_free(subscribed);
+ slist_free_strings_full(subscribed);
subscribed = NULL;
for (node = folder->node->children; node != NULL;
Index: procmime.c
===================================================================
RCS file: /home/claws-mail/claws/src/procmime.c,v
retrieving revision 1.49.2.153
retrieving revision 1.49.2.154
diff -u -d -r1.49.2.153 -r1.49.2.154
--- procmime.c 3 Oct 2012 23:22:13 -0000 1.49.2.153
+++ procmime.c 12 Oct 2012 15:13:16 -0000 1.49.2.154
@@ -1822,8 +1822,7 @@
g_hash_table_insert(table, g_strdup(attribute), g_strdup(value->str));
g_string_free(value, TRUE);
}
- slist_free_strings(concatlist);
- g_slist_free(concatlist);
+ slist_free_strings_full(concatlist);
for (cur = convlist; cur != NULL; cur = g_slist_next(cur)) {
gchar *attribute, *key, *value;
@@ -1856,8 +1855,7 @@
g_hash_table_insert(table, g_strdup(attribute), newvalue);
}
- slist_free_strings(convlist);
- g_slist_free(convlist);
+ slist_free_strings_full(convlist);
g_free(params);
}
More information about the Commits
mailing list