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.
This commit is contained in:
John Ralls 2021-09-09 18:03:18 -07:00
parent 8ab8642e76
commit ff26b71a91

View File

@ -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);
}