diff options
author | Milan Crha <mcrha@redhat.com> | 2011-06-29 18:02:14 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-06-29 18:02:14 +0800 |
commit | 3fbb69cbcb1e0020590d3f55d70ca371af4bca6d (patch) | |
tree | 6eba7cb15a05649950225b4d299eaf793356a18c /addressbook | |
parent | 28bd28a91147474395a62f180e229913fa547509 (diff) | |
download | gsoc2013-evolution-3fbb69cbcb1e0020590d3f55d70ca371af4bca6d.tar gsoc2013-evolution-3fbb69cbcb1e0020590d3f55d70ca371af4bca6d.tar.gz gsoc2013-evolution-3fbb69cbcb1e0020590d3f55d70ca371af4bca6d.tar.bz2 gsoc2013-evolution-3fbb69cbcb1e0020590d3f55d70ca371af4bca6d.tar.lz gsoc2013-evolution-3fbb69cbcb1e0020590d3f55d70ca371af4bca6d.tar.xz gsoc2013-evolution-3fbb69cbcb1e0020590d3f55d70ca371af4bca6d.tar.zst gsoc2013-evolution-3fbb69cbcb1e0020590d3f55d70ca371af4bca6d.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 |