[evolution-ews/gnome-3-2] Bug 661972 - Crash in ews_book_remove_contact_cb at e-book-backend-ews.c:881
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews/gnome-3-2] Bug 661972 - Crash in ews_book_remove_contact_cb at e-book-backend-ews.c:881
- Date: Mon, 14 Nov 2011 10:11:04 +0000 (UTC)
commit c9825fcb5e5276d791e088254295b4d2f1ab4a9b
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Mon Nov 14 15:40:31 2011 +0530
Bug 661972 - Crash in ews_book_remove_contact_cb at e-book-backend-ews.c:881
src/addressbook/e-book-backend-ews.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-ews.c b/src/addressbook/e-book-backend-ews.c
index c5f9736..1c63155 100644
--- a/src/addressbook/e-book-backend-ews.c
+++ b/src/addressbook/e-book-backend-ews.c
@@ -887,6 +887,7 @@ e_book_backend_ews_remove_contacts (EBookBackend *backend,
EBookBackendEws *ebews;
EwsRemoveContact *remove_contact;
EBookBackendEwsPrivate *priv;
+ GSList *l, *copy = NULL;
ebews = E_BOOK_BACKEND_EWS (backend);
@@ -917,7 +918,12 @@ e_book_backend_ews_remove_contacts (EBookBackend *backend,
remove_contact->ebews = g_object_ref(ebews);
remove_contact->book = g_object_ref(book);
remove_contact->opid = opid;
- remove_contact->sl_ids = (GSList *) id_list;
+
+ for (l = (GSList *) id_list; l != NULL; l = g_slist_next (id_list))
+ copy = g_slist_prepend (copy, g_strdup ((gchar *)l->data));
+ copy = g_slist_reverse (copy);
+
+ remove_contact->sl_ids = copy;
e_ews_connection_delete_items_start (priv->cnc, EWS_PRIORITY_MEDIUM, (GSList *) id_list,
EWS_HARD_DELETE, 0 , FALSE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]