gnucash maint: Bug 797011 - GnuCash 3.4 Crashes When Printing Checks with Custom Format
Geert Janssens
gjanssens at code.gnucash.org
Fri Feb 1 09:31:36 EST 2019
Updated via https://github.com/Gnucash/gnucash/commit/0da0f7ad (commit)
from https://github.com/Gnucash/gnucash/commit/d048caed (commit)
commit 0da0f7ada536638186445a1d198d3a823156ba37
Author: Geert Janssens <geert at kobaltwit.be>
Date: Fri Feb 1 15:31:28 2019 +0100
Bug 797011 - GnuCash 3.4 Crashes When Printing Checks with Custom Format
Check freeing was called at the wrong time.
diff --git a/gnucash/gnome/dialog-print-check.c b/gnucash/gnome/dialog-print-check.c
index 95065c7..02c56b0 100644
--- a/gnucash/gnome/dialog-print-check.c
+++ b/gnucash/gnome/dialog-print-check.c
@@ -1521,6 +1521,7 @@ read_one_check_directory(PrintCheckDialog *pcd, GtkListStore *store,
format->group, format->filename);
gtk_dialog_run(GTK_DIALOG(dialog));
gtk_widget_destroy(dialog);
+ free_check_format (format);
}
else
{
@@ -1530,7 +1531,6 @@ read_one_check_directory(PrintCheckDialog *pcd, GtkListStore *store,
found = TRUE;
}
}
- free_check_format (format);
g_dir_close(dir);
/* If any files were added to the list, add a separator between
Summary of changes:
gnucash/gnome/dialog-print-check.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list