[assistant-hierarchy.c] g_free data->gnc_accounts_dir

because it is assigned to gnc_path_get_accountsdir() which is a *gchar
and must be freed.
This commit is contained in:
Christopher Lam 2021-07-30 23:16:45 +08:00
parent a3177e8b6b
commit 67ecb1074f

View File

@ -96,7 +96,7 @@ typedef struct
GtkWidget *region_combo;
GtkWidget *region_label;
const gchar *gnc_accounts_dir;
gchar *gnc_accounts_dir;
GtkTreeView *categories_tree;
GtkTreeRowReference *initial_category;
@ -170,6 +170,8 @@ gnc_hierarchy_destroy_cb (GtkWidget *obj, hierarchy_data *data)
g_hash_table_destroy (hash);
data->balance_hash = NULL;
}
g_free (data->gnc_accounts_dir);
}
static gnc_numeric