aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 5b75fd189d..f4f32ba4b7 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -33,7 +33,15 @@ static void
folder_browser_destroy (GtkObject *object)
{
FolderBrowser *folder_browser = FOLDER_BROWSER (object);
+
+ if (folder_browser->shell) {
+ CORBA_Environment ev;
+ CORBA_exception_init (&ev);
+ Bonobo_Unknown_unref (folder_browser->shell, &ev);
+ CORBA_exception_free (&ev);
+ }
+
if (folder_browser->uri)
g_free (folder_browser->uri);