From c648cb5a7c61f6ca266ff059a6c178e9707eff2e Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Sat, 6 Oct 2001 07:51:06 +0000 Subject: db isn't a BonoboObject, so don't bonobo_object_unref it! 2001-10-06 Jon Trowbridge * gui/component/select-names/e-select-names-manager.c (e_select_names_manager_new): db isn't a BonoboObject, so don't bonobo_object_unref it! svn path=/trunk/; revision=13477 --- .../gui/component/select-names/e-select-names-manager.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/select-names/e-select-names-manager.c b/addressbook/gui/component/select-names/e-select-names-manager.c index 2d8501411b..0a53e989d7 100644 --- a/addressbook/gui/component/select-names/e-select-names-manager.c +++ b/addressbook/gui/component/select-names/e-select-names-manager.c @@ -134,7 +134,9 @@ e_select_names_manager_new (void) else manager->completion_book = NULL; - bonobo_object_unref (BONOBO_OBJECT (db)); + CORBA_exception_init (&ev); + bonobo_object_release_unref (db, &ev); + CORBA_exception_free (&ev); return manager; } @@ -178,6 +180,13 @@ e_select_names_manager_destroy (GtkObject *object) gtk_object_unref(GTK_OBJECT(manager->sections)); gtk_object_unref(GTK_OBJECT(manager->entries)); + +#ifdef E_SELECT_NAMES_MANAGERS_EVER_START_DYING + if (manager->names) { + gtk_widget_destroy (GTK_WIDGET (manager->names)); + manager->names = NULL; + } +#endif } -- cgit v1.2.3