aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/merging/eab-contact-compare.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/addressbook/gui/merging/eab-contact-compare.c b/addressbook/gui/merging/eab-contact-compare.c
index 1ba9b3811f..8295b77e7e 100644
--- a/addressbook/gui/merging/eab-contact-compare.c
+++ b/addressbook/gui/merging/eab-contact-compare.c
@@ -642,7 +642,8 @@ query_cb (GObject *source_object, GAsyncResult *result, gpointer user_data)
info->cb (info->contact, best_contact, best_match, info->closure);
match_search_info_free (info);
g_object_unref (book_client);
- g_object_unref (best_contact);
+ if (best_contact)
+ g_object_unref (best_contact);
}
#define MAX_QUERY_PARTS 10