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.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 81c27f450f..e29f406a67 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -108,6 +108,16 @@ folder_browser_destroy (GtkObject *object)
CORBA_exception_free (&ev);
+ if (folder_browser->view_collection) {
+ gtk_object_unref (GTK_OBJECT (folder_browser->view_collection));
+ folder_browser->view_collection = NULL;
+ }
+
+ if (folder_browser->view_menus) {
+ gtk_object_unref (GTK_OBJECT (folder_browser->view_menus));
+ folder_browser->view_menus = NULL;
+ }
+
folder_browser_parent_class->destroy (object);
}
@@ -1152,6 +1162,9 @@ my_folder_browser_init (GtkObject *object)
{
FolderBrowser *fb = FOLDER_BROWSER (object);
+ fb->view_collection = NULL;
+ fb->view_menus = NULL;
+
/*
* Setup parent class fields.
*/