aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-display.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 33216ae94e..38d4e9d830 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-20 Jon Trowbridge <trow@ximian.com>
+
+ * mail-display.c (mail_display_new): Don't leak our
+ ESearchingTokenizer.
+
2001-10-20 Larry Ewing <lewing@ximian.com>
* folder-browser-ui.c: hook up zoom functions.
diff --git a/mail/mail-display.c b/mail/mail-display.c
index f6fc6d7080..9ff38085dd 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -2025,6 +2025,7 @@ mail_display_new (void)
MailDisplay *mail_display = gtk_type_new (mail_display_get_type ());
GtkWidget *scroll, *html;
GdkAtom clipboard_atom;
+ HTMLTokenizer *tok;
gtk_box_set_homogeneous (GTK_BOX (mail_display), FALSE);
gtk_widget_show (GTK_WIDGET (mail_display));
@@ -2038,7 +2039,9 @@ mail_display_new (void)
gtk_widget_show (GTK_WIDGET (scroll));
html = gtk_html_new ();
- html_engine_set_tokenizer (GTK_HTML (html)->engine, e_searching_tokenizer_new ());
+ tok = e_searching_tokenizer_new ();
+ html_engine_set_tokenizer (GTK_HTML (html)->engine, tok);
+ gtk_object_unref (GTK_OBJECT (tok));
gtk_html_set_default_content_type (GTK_HTML (html),
"text/html; charset=utf-8");