[evolution/webkit] Bug #640707 - Crash on 'Add to address book'->'Edit full' click



commit 2e05c028a9848120b9c10de1d2c0c0bb0440ec13
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jan 27 19:20:24 2011 +0100

    Bug #640707 - Crash on 'Add to address book'->'Edit full' click

 .../gui/contact-editor/e-contact-quick-add.c       |    2 --
 addressbook/gui/merging/eab-contact-compare.c      |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c
index 4ddca1b..c0c424c 100644
--- a/addressbook/gui/contact-editor/e-contact-quick-add.c
+++ b/addressbook/gui/contact-editor/e-contact-quick-add.c
@@ -196,8 +196,6 @@ editor_closed_cb (GtkWidget *w, gpointer closure)
 	if (qa)
 		/* We don't need to unref qa because we set_data_full below */
 		g_object_set_data (G_OBJECT (w), "quick_add", NULL);
-
-	g_object_unref (w);
 }
 
 static void
diff --git a/addressbook/gui/merging/eab-contact-compare.c b/addressbook/gui/merging/eab-contact-compare.c
index db92649..398a948 100644
--- a/addressbook/gui/merging/eab-contact-compare.c
+++ b/addressbook/gui/merging/eab-contact-compare.c
@@ -763,7 +763,7 @@ eab_contact_locate_match_full (EBook *book,
 	g_return_if_fail (E_IS_CONTACT (contact));
 	g_return_if_fail (cb != NULL);
 
-	info = g_new (MatchSearchInfo, 1);
+	info = g_new0 (MatchSearchInfo, 1);
 	info->contact = g_object_ref (contact);
 	info->cb = cb;
 	info->closure = closure;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]