Fix crash when changing account-separator.

Unregister the handler from the same scheme in which it was registered,
otherwise zombie handlers get called, and crash.
This commit is contained in:
John Ralls 2020-03-19 17:43:23 -07:00
parent 5a69ff2315
commit af298a2e38

View File

@ -65,7 +65,7 @@ static void
shared_quickfill_destroy (QofBook *book, gpointer key, gpointer user_data)
{
QFB *qfb = user_data;
gnc_prefs_remove_cb_by_func (GNC_PREFS_GROUP_GENERAL_REGISTER,
gnc_prefs_remove_cb_by_func (GNC_PREFS_GROUP_GENERAL,
GNC_PREF_ACCOUNT_SEPARATOR,
shared_quickfill_pref_changed,
qfb);