[evolution-data-server] Bug #674696 - Crash from finish_operation, get_groups_cb in Google backend



commit 9c57068d9c89f5be9c3940417ac6c651f7ee460f
Author: Milan Crha <mcrha redhat com>
Date:   Wed Jul 25 13:14:28 2012 +0200

    Bug #674696 - Crash from finish_operation, get_groups_cb in Google backend

 .../backends/google/e-book-backend-google.c        |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/backends/google/e-book-backend-google.c b/addressbook/backends/google/e-book-backend-google.c
index 52d866a..9b0c6b9 100644
--- a/addressbook/backends/google/e-book-backend-google.c
+++ b/addressbook/backends/google/e-book-backend-google.c
@@ -816,6 +816,7 @@ get_groups_cb (GDataService *service,
 	}
 
 	finish_operation (backend, -2, gdata_error);
+	g_object_unref (backend);
 
 	g_clear_error (&gdata_error);
 }
@@ -839,6 +840,8 @@ get_groups (EBookBackend *backend)
 		gdata_contacts_query_set_show_deleted (GDATA_CONTACTS_QUERY (query), TRUE);
 	}
 
+	g_object_ref (backend);
+
 	/* Run the query asynchronously */
 	cancellable = start_operation (backend, -2, NULL, _("Querying for updated groupsâ"));
 	gdata_contacts_service_query_groups_async (



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