From badd976e11fb5c6bd84c4824507a0c2526f450a2 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Tue, 1 Jun 2021 22:45:56 +0800 Subject: [PATCH] [gnc-lot] g_value_unset --- libgnucash/engine/gnc-lot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgnucash/engine/gnc-lot.c b/libgnucash/engine/gnc-lot.c index 2ed6baafb9..d1b411782a 100644 --- a/libgnucash/engine/gnc-lot.c +++ b/libgnucash/engine/gnc-lot.c @@ -469,6 +469,7 @@ gnc_lot_set_title (GNCLot *lot, const char *str) qof_instance_set_kvp (QOF_INSTANCE (lot), &v, 1, "title"); qof_instance_set_dirty(QOF_INSTANCE(lot)); gnc_lot_commit_edit(lot); + g_value_unset (&v); } void @@ -482,6 +483,7 @@ gnc_lot_set_notes (GNCLot *lot, const char *str) qof_instance_set_kvp (QOF_INSTANCE (lot), &v, 1, "notes"); qof_instance_set_dirty(QOF_INSTANCE(lot)); gnc_lot_commit_edit(lot); + g_value_unset (&v); } /* ============================================================= */