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

This commit is contained in:
Christopher Lam 2024-04-16 21:41:48 +08:00
parent 3d173681cc
commit 94368f4cb4
2 changed files with 2 additions and 1 deletions

View File

@ -83,6 +83,7 @@ engine-common.i */
%newobject gnc_account_get_full_name;
%newobject xaccTransGetAPARAcctSplitList;
%newobject xaccTransGetPaymentAcctSplitList;
%newobject xaccAccountGetSplitList;
%include "engine-common.i"

View File

@ -5451,7 +5451,7 @@ gnc_account_merge_children (Account *parent)
static void
xaccSplitsBeginStagedTransactionTraversals (SplitsVec splits)
xaccSplitsBeginStagedTransactionTraversals (SplitsVec& splits)
{
for (auto s : splits)
{