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); } /* ============================================================= */