r20659 - gnucash/trunk/src/html - Correct memory leaks found with Valgrind.

J. Alex Aycinena alex.aycinena at code.gnucash.org
Wed May 18 19:06:09 EDT 2011


Author: alex.aycinena
Date: 2011-05-18 19:06:09 -0400 (Wed, 18 May 2011)
New Revision: 20659
Trac: http://svn.gnucash.org/trac/changeset/20659

Modified:
   gnucash/trunk/src/html/gnc-html-webkit.c
Log:
Correct memory leaks found with Valgrind.

Modified: gnucash/trunk/src/html/gnc-html-webkit.c
===================================================================
--- gnucash/trunk/src/html/gnc-html-webkit.c	2011-05-18 20:15:22 UTC (rev 20658)
+++ gnucash/trunk/src/html/gnc-html-webkit.c	2011-05-18 23:06:09 UTC (rev 20659)
@@ -218,6 +218,12 @@
         priv->web_view = NULL;
     }
 
+    if ( priv->html_string != NULL )
+    {
+        g_free( priv->html_string );
+        priv->html_string = NULL;
+    }
+
     G_OBJECT_CLASS(gnc_html_webkit_parent_class)->dispose( obj );
 }
 



More information about the gnucash-changes mailing list