aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/select-names/e-select-names-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names-manager.c')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-manager.c11
1 files changed, 10 insertions, 1 deletions
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
}