mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-25 23:50:06 -05:00
[ScrubBusiness.c] don't reassign splits when restarting for loop
this plugs GList* leak upon restart
This commit is contained in:
1 parent
56ccad9a66
commit
9414fdf546
1 file changed
+3
-2
@@ -693,10 +693,11 @@ gncScrubBusinessAccountSplits (Account *acc, QofPercentageFunc percentagefunc)
|
||||
PINFO ("Cleaning up superfluous lot links in account %s\n", str);
|
||||
xaccAccountBeginEdit(acc);
|
||||
|
||||
restart:
|
||||
curr_split_no = 0;
|
||||
splits = xaccAccountGetSplitList(acc);
|
||||
split_count = xaccAccountGetSplitsSize (acc);
|
||||
|
||||
restart:
|
||||
curr_split_no = 0;
|
||||
for (node = splits; node; node = node->next)
|
||||
{
|
||||
Split *split = node->data;
|
||||
|
||||
Reference in new issue
Block a user