[Commits] callbacks.c 1.9 1.10

miras at claws-mail.org miras at claws-mail.org
Sat Nov 26 04:06:21 CET 2011


Update of /home/claws-mail/contacts/src
In directory claws-mail:/tmp/cvs-serv18060/src

Modified Files:
	callbacks.c 
Log Message:
2011-11-26 [mir]	0.6.0cvs26

	* src/callbacks.c
	    - Fix memory leak
	    - Remove commented out code

Index: callbacks.c
===================================================================
RCS file: /home/claws-mail/contacts/src/callbacks.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- callbacks.c	22 Nov 2011 00:10:53 -0000	1.9
+++ callbacks.c	26 Nov 2011 03:06:19 -0000	1.10
@@ -506,16 +506,6 @@
 	gchar* error = NULL;
 	
 	if (! plugin->readonly) {
-/*		plugin->delete_contact(abook, old, &error);
-		if (!error) {
-			abook->contacts = g_list_remove(abook->contacts, old);
-			plugin->set_contact(abook, new, &error);
-			if (!error) {
-				abook->contacts = g_list_prepend(abook->contacts, new);
-			}
-			else {
-			}
-		}*/
 		abook->contacts = g_list_remove(abook->contacts, old);
 		if (! plugin->update_contact(abook, new, &error))
 			abook->contacts = g_list_prepend(abook->contacts, new);
@@ -1666,9 +1656,12 @@
 	if (! cell && ! cell->text && strlen(new_text) < 1) {
 		contact_list_row_activated_cb(
 				GTK_TREE_VIEW(win->contact_list), path, column, data);
+		gtk_tree_path_free(path);
 		return;
 	}
 
+	gtk_tree_path_free(path);
+
 	if (cell->text && new_text && strcmp(cell->text, new_text) == 0)
 		return;
 	



More information about the Commits mailing list