From 64b934f2be48ce7a1532c8a7deb65ca90c9aef38 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sun, 23 Jul 2017 11:37:42 +0100 Subject: [PATCH] Fix error in use of AccountFilterDialog structure in budgets The filter_override variable was not being set and causing multiple errors in the trace file. --- src/gnome/gnc-plugin-page-budget.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gnome/gnc-plugin-page-budget.c b/src/gnome/gnc-plugin-page-budget.c index 0cc99064b2..de61cf441a 100644 --- a/src/gnome/gnc-plugin-page-budget.c +++ b/src/gnome/gnc-plugin-page-budget.c @@ -333,6 +333,7 @@ gnc_plugin_page_budget_init (GncPluginPageBudget *plugin_page) priv->fd.visible_types = -1; /* Start with all types */ priv->fd.show_hidden = FALSE; priv->fd.show_zero_total = TRUE; + priv->fd.filter_override = g_hash_table_new (g_direct_hash, g_direct_equal); priv->sigFigs = 1; recurrenceSet(&priv->r, 1, PERIOD_MONTH, NULL, WEEKEND_ADJ_NONE); @@ -471,6 +472,9 @@ gnc_plugin_page_budget_destroy_widget (GncPluginPage *plugin_page) priv->budget_view = NULL; } + // Destroy the filter override hash table + g_hash_table_destroy(priv->fd.filter_override); + gnc_gui_component_clear_watches (priv->component_id); if (priv->component_id != NO_COMPONENT)