gnucash maint: xxxgtk_textview_get_text returns a char* which must be freed
Christopher Lam
clam at code.gnucash.org
Mon Oct 17 21:40:12 EDT 2022
Updated via https://github.com/Gnucash/gnucash/commit/026c795c (commit)
from https://github.com/Gnucash/gnucash/commit/d27de50c (commit)
commit 026c795c82e42ebc9469ac473ffff0ffeabdfeac
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Tue Oct 18 09:39:38 2022 +0800
xxxgtk_textview_get_text returns a char* which must be freed
diff --git a/gnucash/gnome/gnc-plugin-page-budget.c b/gnucash/gnome/gnc-plugin-page-budget.c
index 8b6722c04..a6c1034ab 100644
--- a/gnucash/gnome/gnc-plugin-page-budget.c
+++ b/gnucash/gnome/gnc-plugin-page-budget.c
@@ -1300,6 +1300,7 @@ gnc_plugin_page_budget_cmd_budget_note(GtkAction *action,
if (!strlen(txt))
txt = NULL;
gnc_budget_set_account_period_note(priv->budget, acc, period_num, txt);
+ g_free (txt);
break;
default:
break;
Summary of changes:
gnucash/gnome/gnc-plugin-page-budget.c | 1 +
1 file changed, 1 insertion(+)
More information about the gnucash-changes
mailing list