Skip to content

Commit 35b6fb7

Browse files
[Account.cpp] ensure priv->splits releases memory on shutdown
1 parent ae8e50e commit 35b6fb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libgnucash/engine/Account.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,6 +1437,7 @@ xaccFreeAccount (Account *acc)
14371437
gnc_commodity_decrement_usage_count(priv->commodity);
14381438
priv->commodity = nullptr;
14391439
priv->splits.clear();
1440+
priv->splits.shrink_to_fit();
14401441

14411442
priv->balance_dirty = FALSE;
14421443
priv->sort_dirty = FALSE;

0 commit comments

Comments
 (0)