Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/yelp/ChangeLog,v
retrieving revision 1.586
diff -u -r1.586 ChangeLog
--- ChangeLog	20 Oct 2004 10:56:21 -0000	1.586
+++ ChangeLog	25 Oct 2004 22:05:59 -0000
@@ -1,3 +1,13 @@
+2004-
+
+2004-10-25  Diego Gonzalez <diego@pemas.net>
+
+	* src/Makefile.am: add macro MOZILLA_HOME
+	* src/yelp-html-gecko.c (html_init): initialize mozilla's home directory, to avoid
+	  crashing on startup
+	* src/yelp-utils.c (yelp_doc_info_free) don't unref the pages to avoid
+     crashing when clicking on a link
+
 2004-10-20  Shaun McCance  <shaunm@gnome.org>
 
 	* stylesheets/db2html.xsl.in:
Index: src/Makefile.am
===================================================================
RCS file: /cvs/gnome/yelp/src/Makefile.am,v
retrieving revision 1.69
diff -u -r1.69 Makefile.am
--- src/Makefile.am	18 Oct 2004 07:03:53 -0000	1.69
+++ src/Makefile.am	25 Oct 2004 22:06:00 -0000
@@ -6,6 +6,7 @@
 	-I$(top_srcdir)							\
 	$(YELP_CFLAGS)							\
 	$(MOZILLA_COMPONENT_CFLAGS)					\
+	-DMOZILLA_HOME=\""$(MOZILLA_HOME)\""				\
 	-I$(MOZILLA_INCLUDE_ROOT)					\
 	-I$(MOZILLA_INCLUDE_ROOT)/dom					\
 	-I$(MOZILLA_INCLUDE_ROOT)/find					\
Index: src/yelp-html-gecko.c
===================================================================
RCS file: /cvs/gnome/yelp/src/yelp-html-gecko.c,v
retrieving revision 1.5
diff -u -r1.5 yelp-html-gecko.c
--- src/yelp-html-gecko.c	20 Oct 2004 10:36:33 -0000	1.5
+++ src/yelp-html-gecko.c	25 Oct 2004 22:06:00 -0000
@@ -117,6 +117,8 @@
     YelpHtmlPriv  *priv;
     YelpHtmlClass *klass;
 
+    gtk_moz_embed_set_comp_path (MOZILLA_HOME);
+
     priv = g_new0 (YelpHtmlPriv, 1);
     html->priv = priv;
 
@@ -124,6 +126,7 @@
     html->priv->embed = gtk_moz_embed_new ();
 
     klass = YELP_HTML_GET_CLASS (html);
+
     if (!klass->font_handler) {
 	klass->font_handler =
 	    yelp_settings_notify_add (YELP_SETTINGS_INFO_FONTS,
Index: src/yelp-utils.c
===================================================================
RCS file: /cvs/gnome/yelp/src/yelp-utils.c,v
retrieving revision 1.10
diff -u -r1.10 yelp-utils.c
--- src/yelp-utils.c	20 Oct 2004 10:36:33 -0000	1.10
+++ src/yelp-utils.c	25 Oct 2004 22:06:01 -0000
@@ -215,8 +215,6 @@
     if (!doc)
 	return;
 
-    g_object_unref (doc->pager);
-
     for (i = 0; i < doc->num_uris; i++)
 	g_free ((doc->uris + i)->uri);
     g_free (doc->uris);
