gnucash maint: Bug 798256 - Crash in recnFinishCB

John Ralls jralls at code.gnucash.org
Thu Sep 9 21:05:01 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/ff26b71a (commit)
	from  https://github.com/Gnucash/gnucash/commit/8ab8642e (commit)



commit ff26b71a91ab50f6a4db465b4bde0c42fc072f97
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Sep 9 18:03:18 2021 -0700

    Bug 798256 - Crash in recnFinishCB
    
    Make the action_group not sensitive in the recn_destroy_cb so that
    the action callbacks won't be called after the recnData is freed.

diff --git a/gnucash/gnome/window-reconcile.c b/gnucash/gnome/window-reconcile.c
index 417707228..9ed645d1b 100644
--- a/gnucash/gnome/window-reconcile.c
+++ b/gnucash/gnome/window-reconcile.c
@@ -2120,6 +2120,9 @@ recn_destroy_cb (GtkWidget *w, gpointer data)
     if (recnData->delete_refresh)
         gnc_resume_gui_refresh ();
 
+    //Disable the actions, the handlers try to access recnData
+    gtk_action_group_set_sensitive(recnData->action_group, FALSE);
+
     g_free (recnData);
 }
 



Summary of changes:
 gnucash/gnome/window-reconcile.c | 3 +++
 1 file changed, 3 insertions(+)



More information about the gnucash-changes mailing list