From 5f27abb5443e5fa9951a5953151089a785b19671 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Mon, 6 Nov 2000 21:43:07 +0000 Subject: Fix the addressbook crash that happened when the ESelectNames control was getting destroyed. svn path=/trunk/; revision=6453 --- addressbook/ChangeLog | 6 ++++++ addressbook/gui/component/select-names/e-select-names-bonobo.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index d18c824e5d..44793f2277 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2000-11-06 Ettore Perazzoli + + * gui/component/select-names/e-select-names-bonobo.c + (impl_SelectNames_get_entry_for_section): Duplicate the object + reference before returning. + 2000-11-05 Christopher James Lahey * contact-editor/e-contact-editor.c, diff --git a/addressbook/gui/component/select-names/e-select-names-bonobo.c b/addressbook/gui/component/select-names/e-select-names-bonobo.c index d4e2d32cfc..1a0bd450f0 100644 --- a/addressbook/gui/component/select-names/e-select-names-bonobo.c +++ b/addressbook/gui/component/select-names/e-select-names-bonobo.c @@ -176,7 +176,7 @@ impl_SelectNames_get_entry_for_section (PortableServer_Servant servant, bonobo_control_set_properties (control, property_bag); - return bonobo_object_corba_objref (BONOBO_OBJECT (control)); + return CORBA_Object_duplicate (bonobo_object_corba_objref (BONOBO_OBJECT (control)), ev); } static void -- cgit v1.2.3