From ff26b71a91ab50f6a4db465b4bde0c42fc072f97 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 9 Sep 2021 18:03:18 -0700 Subject: [PATCH] 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. --- gnucash/gnome/window-reconcile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnucash/gnome/window-reconcile.c b/gnucash/gnome/window-reconcile.c index 4177072281..9ed645d1b1 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); }