[Account.cpp] ensure priv->splits releases memory on shutdown

This commit is contained in:
Christopher Lam 2024-04-19 18:55:05 +08:00
parent ae8e50e410
commit 35b6fb767d

View File

@ -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;