From 121d878a0c87daf56498431830194dfcefa4538a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 5 Mar 2012 15:42:45 -0600 Subject: When deleting a post from an xact, remove it from its account --- src/xact.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/xact.cc') 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); } } -- cgit v1.2.3