From d2e7582cd4b08865a8bdec2fccc9dce21590f3ed Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 27 Sep 2002 20:37:12 +0000 Subject: [ fixes #27521 ] always unref the contact editor when we get the 2002-09-27 Chris Toshok [ fixes #27521 ] * gui/contact-editor/e-contact-quick-add.c (editor_closed_cb): always unref the contact editor when we get the editor_closed signal. svn path=/trunk/; revision=18255 --- addressbook/ChangeLog | 7 +++++++ addressbook/gui/contact-editor/e-contact-quick-add.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index b58fa7af0c..166297f596 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2002-09-27 Chris Toshok + + [ fixes #27521 ] + * gui/contact-editor/e-contact-quick-add.c (editor_closed_cb): + always unref the contact editor when we get the editor_closed + signal. + 2002-09-27 Chris Toshok * backend/pas/pas-backend-ldap.c (check_schema_support): set the diff --git a/addressbook/gui/contact-editor/e-contact-quick-add.c b/addressbook/gui/contact-editor/e-contact-quick-add.c index 80687e1e0a..e8d623afb0 100644 --- a/addressbook/gui/contact-editor/e-contact-quick-add.c +++ b/addressbook/gui/contact-editor/e-contact-quick-add.c @@ -186,11 +186,11 @@ editor_closed_cb (GtkWidget *w, gpointer closure) { QuickAdd *qa = (QuickAdd *) gtk_object_get_data (GTK_OBJECT (w), "quick_add"); - if (qa) { + if (qa) /* We don't need to unref qa because we set_data_full below */ gtk_object_set_data (GTK_OBJECT (w), "quick_add", NULL); - gtk_object_unref (GTK_OBJECT (w)); - } + + gtk_object_unref (GTK_OBJECT (w)); } static void -- cgit v1.2.3