Index: nautilus-gtkhtml-view.c
===================================================================
RCS file: /cvs/gnome/nautilus-gtkhtml/src/nautilus-gtkhtml-view.c,v
retrieving revision 1.4
diff -u -r1.4 nautilus-gtkhtml-view.c
--- nautilus-gtkhtml-view.c	10 Feb 2002 19:11:24 -0000	1.4
+++ nautilus-gtkhtml-view.c	24 Apr 2002 18:25:56 -0000
@@ -766,7 +766,13 @@
 	view = NAUTILUS_GTKHTML_VIEW (object);
 
 	gnome_vfs_uri_unref (view->details->base);
-	g_object_unref (G_OBJECT (view->details->view));
+
+	/* We shouldn't really need to call html_document_clear() but
+	   libgtkhtml seems to have a bug with reference counting otherwise. */
+	kill_old_connections (view->details->doc);
+	html_document_clear (view->details->doc);
+	g_object_unref (G_OBJECT (view->details->doc));
+
 #if 0
 	if (view->details->menu) {
 		gtk_widget_unref (view->details->menu);
