[Commits] callbacks.c 1.7 1.8
miras at claws-mail.org
miras at claws-mail.org
Mon Nov 21 00:01:40 CET 2011
Update of /home/claws-mail/contacts/src
In directory claws-mail:/tmp/cvs-serv1261/src
Modified Files:
callbacks.c
Log Message:
2011-11-20 [mir] 0.6.0cvs23
* src/callbacks.c
Fix bug: Used a copy instead of a reference to address
book which should be edited.
Fix bug: Forgot to clear list of contacts in copy of
address book which is used for editing - edit config
is likely to change the cached list of contacts.
Index: callbacks.c
===================================================================
RCS file: /home/claws-mail/contacts/src/callbacks.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- callbacks.c 20 Nov 2011 21:24:20 -0000 1.7
+++ callbacks.c 20 Nov 2011 23:01:38 -0000 1.8
@@ -701,7 +701,7 @@
names, &plugin_name)) {
gint index = gslist_get_index(
names, plugin_name, gslist_compare_gchar);
- abook = address_book_copy(g_slist_nth_data(open, index), TRUE);
+ abook = g_slist_nth_data(open, index);
}
gslist_free(&names, g_free);
}
@@ -741,6 +741,7 @@
}
if (abook && plugin) {
new = address_book_copy(abook, TRUE);
+ address_book_contacts_free(new);
if (address_book_edit(win->window, plugin, &new)) {
if (! use_closed)
plugin->abook_close(abook, &error);
More information about the Commits
mailing list