summaryrefslogtreecommitdiff
path: root/src/xact.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-05 15:42:45 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-05 15:42:45 -0600
commit121d878a0c87daf56498431830194dfcefa4538a (patch)
tree6cb5d1d636add86c88ee8b7bc02d4fd8fdff42d0 /src/xact.cc
parent05725eab3fdbbf82b2c702ca8c1615dea9cc8a1b (diff)
downloadfork-ledger-121d878a0c87daf56498431830194dfcefa4538a.tar.gz
fork-ledger-121d878a0c87daf56498431830194dfcefa4538a.tar.bz2
fork-ledger-121d878a0c87daf56498431830194dfcefa4538a.zip
When deleting a post from an xact, remove it from its account
Diffstat (limited to 'src/xact.cc')
-rw-r--r--src/xact.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 0251edde..f05c6069 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -55,6 +55,8 @@ xact_base_t::~xact_base_t()
// If the posting is a temporary, it will be destructed when the
// temporary is.
assert(! post->has_flags(ITEM_TEMP));
+
+ post->account->remove_post(post);
checked_delete(post);
}
}