gnucash maint: [dialog-tax-table.c] free GList after use

Christopher Lam clam at code.gnucash.org
Sun Nov 1 08:05:16 EST 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/ccc65318 (commit)
	from  https://github.com/Gnucash/gnucash/commit/e9d1e694 (commit)



commit ccc653186c11908f42ce13f3e0d3f30f585d78ee
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Nov 1 21:02:14 2020 +0800

    [dialog-tax-table.c] free GList after use

diff --git a/gnucash/gnome-utils/dialog-tax-table.c b/gnucash/gnome-utils/dialog-tax-table.c
index b78778b7a..803eed3c4 100644
--- a/gnucash/gnome-utils/dialog-tax-table.c
+++ b/gnucash/gnome-utils/dialog-tax-table.c
@@ -409,6 +409,9 @@ tax_table_entries_refresh (TaxTableWindow *ttw)
         g_free (row_text[1]);
     }
 
+    if (list)
+        g_list_free (list);
+
     if (reference)
     {
         path = gtk_tree_row_reference_get_path (reference);



Summary of changes:
 gnucash/gnome-utils/dialog-tax-table.c | 3 +++
 1 file changed, 3 insertions(+)



More information about the gnucash-changes mailing list