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/gui/contact-editor/e-contact-quick-add.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'addressbook/gui/contact-editor') 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