Index: src/ChangeLog
===================================================================
--- src/ChangeLog	(revision 8509)
+++ src/ChangeLog	(working copy)
@@ -1,3 +1,12 @@
+2007-08-08  Milan Crha  <mcrha@redhat.com>
+
+	** Fix for bug #426496
+
+	* htmlembedded.c: (destroy):
+	Unref widget after ref_sink it to get rid of it.
+
+	* gtkhtml.c: (scroll_command): Removed compiler warning.
+
 2007-07-27  Matthew Barnes  <mbarnes@redhat.com>
 
 	* htmlprinter.c:
Index: src/htmlembedded.c
===================================================================
--- src/htmlembedded.c	(revision 8509)
+++ src/htmlembedded.c	(working copy)
@@ -120,6 +120,7 @@
 			gtk_container_remove (GTK_CONTAINER (element->parent), element->widget);
 		} else {
 			g_object_ref_sink (element->widget);
+			g_object_unref (element->widget);
 		}
 	}
 
Index: src/gtkhtml.c
===================================================================
--- src/gtkhtml.c	(revision 8509)
+++ src/gtkhtml.c	(working copy)
@@ -4515,7 +4515,7 @@
 {
 	GtkAdjustment *adj;
 	gint line_height;
-	gfloat delta;
+	gfloat delta = 0;
 
 	/* we dont want scroll in editable (move cursor instead) */
 	if (html_engine_get_editable (html->engine) || html->engine->caret_mode)
