[evolution/webkit] Bug #634387 - Crash in bbdb_sync_buddy_list_in_thread
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit] Bug #634387 - Crash in bbdb_sync_buddy_list_in_thread
- Date: Mon, 11 Jul 2011 13:48:57 +0000 (UTC)
commit 852d85a454ad2032567074c52c06595a2c4f3641
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 25 18:21:22 2010 +0100
Bug #634387 - Crash in bbdb_sync_buddy_list_in_thread
plugins/bbdb/gaimbuddies.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plugins/bbdb/gaimbuddies.c b/plugins/bbdb/gaimbuddies.c
index ebafc85..62fc89d 100644
--- a/plugins/bbdb/gaimbuddies.c
+++ b/plugins/bbdb/gaimbuddies.c
@@ -208,7 +208,7 @@ bbdb_sync_buddy_list_in_thread (gpointer data)
for (l = std->blist; l != NULL; l = l->next) {
GaimBuddy *b = l->data;
EBookQuery *query;
- GList *contacts;
+ GList *contacts = NULL;
GError *error = NULL;
EContact *c;
@@ -219,7 +219,10 @@ bbdb_sync_buddy_list_in_thread (gpointer data)
/* Look for an exact match full name == buddy alias */
query = e_book_query_field_test (E_CONTACT_FULL_NAME, E_BOOK_QUERY_IS, b->alias);
- e_book_get_contacts (std->book, query, &contacts, NULL);
+ if (!e_book_get_contacts (std->book, query, &contacts, NULL)) {
+ e_book_query_unref (query);
+ continue;
+ }
e_book_query_unref (query);
if (contacts != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]