aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-message-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-message-browser.c')
-rw-r--r--mail/em-message-browser.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/mail/em-message-browser.c b/mail/em-message-browser.c
index 68636a2d37..f7eb7ecd49 100644
--- a/mail/em-message-browser.c
+++ b/mail/em-message-browser.c
@@ -89,9 +89,23 @@ emmb_finalise(GObject *o)
}
static void
+emmb_destroy(GtkObject *o)
+{
+ EMMessageBrowser *emmb = (EMMessageBrowser *)o;
+
+ if (emmb->view.list) {
+ gtk_widget_destroy(emmb->view.list);
+ emmb->view.list = NULL;
+ }
+
+ ((GtkObjectClass *)emmb_parent)->destroy(o);
+}
+
+static void
emmb_class_init(GObjectClass *klass)
{
klass->finalize = emmb_finalise;
+ ((GtkObjectClass *)klass)->destroy = emmb_destroy;
((EMFolderViewClass *)klass)->set_message = emmb_set_message;
((EMFolderViewClass *)klass)->activate = emmb_activate;
}