[evolution-ews] Fix contact deletion, regression caused while porting



commit c88499f032d2e9ca2584bdcea6a10be81599093d
Author: Chenthill Palanisamy <pchenthill novell com>
Date:   Tue Oct 11 15:04:39 2011 +0530

    Fix contact deletion, regression caused while porting

 src/addressbook/e-book-backend-ews.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index d0ad908..b88edc9 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -842,6 +842,8 @@ ews_book_remove_contact_cb (GObject *object, GAsyncResult *res, gpointer user_da
 		g_warning ("\nError removing contact %s \n", error->message);
 	}
 
+	g_slist_foreach (remove_contact->sl_ids, (GFunc) g_free, NULL);
+	g_slist_free (remove_contact->sl_ids);
 	g_object_unref (remove_contact->ebews);
 	g_object_unref (remove_contact->book);
 	g_free (remove_contact);
@@ -2400,12 +2402,10 @@ e_book_backend_ews_remove_contacts_compat (EBookBackend *backend,
 	GSList *sl = NULL;
 
 	for (l = id_list; l != NULL; l = g_list_next (l))
-		sl = g_slist_prepend (sl, l->data);
+		sl = g_slist_prepend (sl, g_strdup (l->data));
 	
 	sl = g_slist_reverse (sl);
 	e_book_backend_ews_remove_contacts (backend, book, opid, NULL, sl);
-	
-	g_slist_free (sl);
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]