summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-09 21:05:45 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:40:56 -0400
commitbffa2703fce098b13e67b55d584af82fb191b135 (patch)
treefb5018c9dcec864e4edc08c69213bf27bbbebc5a
parentcc6275cd6343ce61cc87028cd63b651e89797668 (diff)
downloadfork-ledger-bffa2703fce098b13e67b55d584af82fb191b135.tar.gz
fork-ledger-bffa2703fce098b13e67b55d584af82fb191b135.tar.bz2
fork-ledger-bffa2703fce098b13e67b55d584af82fb191b135.zip
(clear_transactions_xdata): Clear the transaction xdata pointers once
they have been freed. (clear_accounts_xdata): Clear the account xdata pointers once they have been freed.
-rw-r--r--walk.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/walk.cc b/walk.cc
index c5e93dfb..da7db316 100644
--- a/walk.cc
+++ b/walk.cc
@@ -664,6 +664,7 @@ void clear_transactions_xdata()
i != transactions_xdata_ptrs.end();
i++)
**i = NULL;
+ transactions_xdata_ptrs.clear();
}
template <>
@@ -782,6 +783,7 @@ void clear_accounts_xdata()
i != accounts_xdata_ptrs.end();
i++)
**i = NULL;
+ accounts_xdata_ptrs.clear();
}