gnucash stable: [Account.cpp] SplitsVec&, ensure xaccAccountGetSplitList is freed

Christopher Lam clam at code.gnucash.org
Tue Apr 16 10:08:37 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/94368f4c (commit)
	from  https://github.com/Gnucash/gnucash/commit/3d173681 (commit)



commit 94368f4cb4c8f52ef73de186b146f63c89f04872
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Tue Apr 16 21:41:48 2024 +0800

    [Account.cpp] SplitsVec&, ensure xaccAccountGetSplitList is freed

diff --git a/bindings/engine.i b/bindings/engine.i
index 7e849af8bb..eb753e8068 100644
--- a/bindings/engine.i
+++ b/bindings/engine.i
@@ -83,6 +83,7 @@ engine-common.i */
 %newobject gnc_account_get_full_name;
 %newobject xaccTransGetAPARAcctSplitList;
 %newobject xaccTransGetPaymentAcctSplitList;
+%newobject xaccAccountGetSplitList;
 
 %include "engine-common.i"
 
diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp
index 504e1794e2..f25f7c4feb 100644
--- a/libgnucash/engine/Account.cpp
+++ b/libgnucash/engine/Account.cpp
@@ -5451,7 +5451,7 @@ gnc_account_merge_children (Account *parent)
 
 
 static void
-xaccSplitsBeginStagedTransactionTraversals (SplitsVec splits)
+xaccSplitsBeginStagedTransactionTraversals (SplitsVec& splits)
 {
     for (auto s : splits)
     {



Summary of changes:
 bindings/engine.i             | 1 +
 libgnucash/engine/Account.cpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)



More information about the gnucash-changes mailing list