When deleting a post from an xact, remove it from its account

This commit is contained in:
John Wiegley 2012-03-05 15:42:45 -06:00
parent 05725eab3f
commit 121d878a0c

View file

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