gnucash maint: Bill invoice importer crashing when invoice has multiple lines.
Mike Evans
mikee at code.gnucash.org
Thu Aug 7 10:38:16 EDT 2014
Updated via https://github.com/Gnucash/gnucash/commit/56af86c0 (commit)
from https://github.com/Gnucash/gnucash/commit/edad1867 (commit)
commit 56af86c0a27cf07e5740c63dba1fdf3a69a2d549
Author: Mike Evans <mikee at millstreamcomputing.co.uk>
Date: Sun Aug 3 14:51:06 2014 +0100
Bill invoice importer crashing when invoice has multiple lines.
Move the final g_free(s) outside the while loop.
diff --git a/src/plugins/bi_import/dialog-bi-import.c b/src/plugins/bi_import/dialog-bi-import.c
index ad91f55..9d31961 100644
--- a/src/plugins/bi_import/dialog-bi-import.c
+++ b/src/plugins/bi_import/dialog-bi-import.c
@@ -777,31 +777,32 @@ gnc_bi_import_create_bis (GtkListStore * store, QofBook * book,
}
}
- g_free (new_id);
-
- // cleanup
- g_free (id);
- g_free (date_opened);
- g_free (owner_id);
- g_free (billing_id);
- g_free (notes);
- g_free (date);
- g_free (desc);
- g_free (action);
- g_free (account);
- g_free (quantity);
- g_free (price);
- g_free (disc_type);
- g_free (disc_how);
- g_free (discount);
- g_free (taxable);
- g_free (taxincluded);
- g_free (tax_table);
- g_free (date_posted);
- g_free (due_date);
- g_free (account_posted);
- g_free (memo_posted);
- g_free (accumulatesplits);
+
}
+ // cleanup
+ g_free (new_id);
+ g_free (id);
+ g_free (date_opened);
+ g_free (owner_id);
+ g_free (billing_id);
+ g_free (notes);
+ g_free (date);
+ g_free (desc);
+ g_free (action);
+ g_free (account);
+ g_free (quantity);
+ g_free (price);
+ g_free (disc_type);
+ g_free (disc_how);
+ g_free (discount);
+ g_free (taxable);
+ g_free (taxincluded);
+ g_free (tax_table);
+ g_free (date_posted);
+ g_free (due_date);
+ g_free (account_posted);
+ g_free (memo_posted);
+ g_free (accumulatesplits);
+
}
Summary of changes:
src/plugins/bi_import/dialog-bi-import.c | 51 ++++++++++++++++----------------
1 file changed, 26 insertions(+), 25 deletions(-)
More information about the gnucash-changes
mailing list