aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2001-10-21 11:32:53 +0800
committerJon Trowbridge <trow@src.gnome.org>2001-10-21 11:32:53 +0800
commita4667973f5e59c9b7bb566d8e6e850ba7e840951 (patch)
tree6fc0fea04c06c5aa7d66e4c5f703c7bb6fa542fc /mail
parent2dca9d97ed0310fb16c8fcb9af09e53053e95425 (diff)
downloadgsoc2013-evolution-a4667973f5e59c9b7bb566d8e6e850ba7e840951.tar
gsoc2013-evolution-a4667973f5e59c9b7bb566d8e6e850ba7e840951.tar.gz
gsoc2013-evolution-a4667973f5e59c9b7bb566d8e6e850ba7e840951.tar.bz2
gsoc2013-evolution-a4667973f5e59c9b7bb566d8e6e850ba7e840951.tar.lz
gsoc2013-evolution-a4667973f5e59c9b7bb566d8e6e850ba7e840951.tar.xz
gsoc2013-evolution-a4667973f5e59c9b7bb566d8e6e850ba7e840951.tar.zst
gsoc2013-evolution-a4667973f5e59c9b7bb566d8e6e850ba7e840951.zip
Don't leak our ESearchingTokenizer.
2001-10-20 Jon Trowbridge <trow@ximian.com> * mail-display.c (mail_display_new): Don't leak our ESearchingTokenizer. svn path=/trunk/; revision=13837
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");