r20799 - gnucash/branches/2.4/src/html - [20798] Fix report reload and options change that got broken by the previous

Geert Janssens gjanssens at code.gnucash.org
Thu Jun 23 10:34:25 EDT 2011


Author: gjanssens
Date: 2011-06-23 10:34:25 -0400 (Thu, 23 Jun 2011)
New Revision: 20799
Trac: http://svn.gnucash.org/trac/changeset/20799

Modified:
   gnucash/branches/2.4/src/html/gnc-html-history.c
Log:
[20798] Fix report reload and options change that got broken by the previous
commit.

Modified: gnucash/branches/2.4/src/html/gnc-html-history.c
===================================================================
--- gnucash/branches/2.4/src/html/gnc-html-history.c	2011-06-23 14:33:20 UTC (rev 20798)
+++ gnucash/branches/2.4/src/html/gnc-html-history.c	2011-06-23 14:34:25 UTC (rev 20799)
@@ -286,7 +286,7 @@
 {
     gnc_html_history_node * rv = g_new0(gnc_html_history_node, 1);
 
-    rv->type      = type;
+    rv->type      = g_strdup(type);
     rv->location  = g_strdup(location);
     rv->label     = g_strdup(label);
     return rv;
@@ -302,6 +302,7 @@
 {
 
     /* free the url resources and cached text */
+    g_free(node->type);
     g_free(node->location);
     g_free(node->label);
 



More information about the gnucash-changes mailing list