From 8b546f3dfa39bceb5d28c2b9b09f3445b46b6b6d Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Tue, 29 Aug 2000 22:16:15 +0000 Subject: Fixing a spurious unref, or creating a circular reference? You decide. svn path=/trunk/; revision=5104 --- mail/ChangeLog | 5 +++++ mail/folder-browser.c | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index e5c84919b8..5b165ed3c2 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-08-29 Peter Williams + + * folder-browser.c (folder_browser_new): Ref the Evolution_Shell. + Is this correct, or is it a circular reference? + 2000-08-29 Dan Winship * mail-ops.c (mail_do_send_mail): Update this and related diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 8279624e4c..65ca9cf114 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -441,12 +441,19 @@ folder_browser_new (Evolution_Shell shell) { static int serial; FolderBrowser *folder_browser = gtk_type_new (folder_browser_get_type ()); + CORBA_Environment ev; my_folder_browser_init (GTK_OBJECT (folder_browser)); folder_browser->uri = NULL; folder_browser->serial = serial++; folder_browser->shell = shell; +#warning "is this a circular reference???" + + CORBA_exception_init (&ev); + Bonobo_Unknown_ref (shell, &ev); + CORBA_exception_free (&ev); + return GTK_WIDGET (folder_browser); } -- cgit v1.2.3