From 3ab1d32f6ea666e466531e826b023a5d9a0722a4 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sun, 6 Mar 2022 21:32:28 +0800 Subject: [PATCH] [gnc-account-sel.c] GNCAccountSel finalize must free commodity list --- gnucash/gnome-utils/gnc-account-sel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnucash/gnome-utils/gnc-account-sel.c b/gnucash/gnome-utils/gnc-account-sel.c index 7c53461a4f..389aa9a03d 100644 --- a/gnucash/gnome-utils/gnc-account-sel.c +++ b/gnucash/gnome-utils/gnc-account-sel.c @@ -403,6 +403,9 @@ gnc_account_sel_finalize (GObject *object) if (gas->acctTypeFilters) g_list_free (gas->acctTypeFilters); + if (gas->acctCommodityFilters) + g_list_free (gas->acctCommodityFilters); + G_OBJECT_CLASS (parent_class)->finalize (object); }