Index: htmlview.c
===================================================================
RCS file: /cvs/gnome/gtkhtml2/libgtkhtml/view/htmlview.c,v
retrieving revision 1.135
diff -u -r1.135 htmlview.c
--- htmlview.c	15 Apr 2002 15:51:42 -0000	1.135
+++ htmlview.c	23 Apr 2002 18:33:39 -0000
@@ -798,6 +798,16 @@
 	}
 	g_object_unref (view->document);
 
+	if (view->relayout_timeout_id != 0) {
+		gtk_timeout_remove (view->relayout_timeout_id);
+		view->relayout_timeout_id = 0;
+	}
+
+	if (view->relayout_idle_id != 0) {
+		gtk_idle_remove (view->relayout_idle_id);
+		view->relayout_idle_id = 0;
+	}
+
 	if (G_OBJECT_CLASS (parent_class)->finalize)
 		(G_OBJECT_CLASS (parent_class)->finalize) (object);
 }
