gnc_ui_account_get_balance_limit_icon_name returns a new *char

gnc-tree-model-account.c must take ownership of string
This commit is contained in:
Christopher Lam 2023-01-13 08:31:46 +08:00
parent fd007a0af1
commit 6faaf51150

View File

@ -834,7 +834,7 @@ gnc_tree_model_account_get_value (GtkTreeModel *tree_model,
case GNC_TREE_MODEL_ACCOUNT_COL_BALANCE_LIMIT:
g_value_init (value, G_TYPE_STRING);
string = gnc_ui_account_get_balance_limit_icon_name (account);
g_value_set_string (value, string);
g_value_take_string (value, string);
break;
case GNC_TREE_MODEL_ACCOUNT_COL_CLEARED: