Skip to content

Commit

Permalink
[Account.cpp] ensure priv->splits releases memory on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherlam committed Apr 19, 2024
1 parent ae8e50e commit 35b6fb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libgnucash/engine/Account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,7 @@ xaccFreeAccount (Account *acc)
gnc_commodity_decrement_usage_count(priv->commodity);
priv->commodity = nullptr;
priv->splits.clear();
priv->splits.shrink_to_fit();

priv->balance_dirty = FALSE;
priv->sort_dirty = FALSE;
Expand Down

0 comments on commit 35b6fb7

Please sign in to comment.