[evolution] Bug #652627 - Invalid unref on a NULL pointer from query_cb
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #652627 - Invalid unref on a NULL pointer from query_cb
- Date: Wed, 29 Jun 2011 10:02:59 +0000 (UTC)
commit 3fbb69cbcb1e0020590d3f55d70ca371af4bca6d
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 29 12:02:14 2011 +0200
Bug #652627 - Invalid unref on a NULL pointer from query_cb
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 1ba9b38..8295b77 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]