diff options
author | Milan Crha <mcrha@redhat.com> | 2011-06-29 18:02:14 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:35 +0800 |
commit | 85f66e2199c571da3b4ff454b8e96249ce968321 (patch) | |
tree | e45f35f6b62571326fde20668300741422979a93 /addressbook | |
parent | 8faaef3ec6137974593d53b9ce64c8e2644ff844 (diff) | |
download | gsoc2013-evolution-85f66e2199c571da3b4ff454b8e96249ce968321.tar gsoc2013-evolution-85f66e2199c571da3b4ff454b8e96249ce968321.tar.gz gsoc2013-evolution-85f66e2199c571da3b4ff454b8e96249ce968321.tar.bz2 gsoc2013-evolution-85f66e2199c571da3b4ff454b8e96249ce968321.tar.lz gsoc2013-evolution-85f66e2199c571da3b4ff454b8e96249ce968321.tar.xz gsoc2013-evolution-85f66e2199c571da3b4ff454b8e96249ce968321.tar.zst gsoc2013-evolution-85f66e2199c571da3b4ff454b8e96249ce968321.zip |
Bug #652627 - Invalid unref on a NULL pointer from query_cb
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/gui/merging/eab-contact-compare.c | 3 |
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 |