summaryrefslogtreecommitdiff
path: root/src/temps.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/temps.h')
-rw-r--r--src/temps.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/temps.h b/src/temps.h
index ac6d08cd..210bbf63 100644
--- a/src/temps.h
+++ b/src/temps.h
@@ -51,7 +51,9 @@ class temporaries_t
optional<std::list<account_t> > acct_temps;
public:
- ~temporaries_t();
+ ~temporaries_t() {
+ clear();
+ }
xact_t& copy_xact(xact_t& origin);
xact_t& create_xact();
@@ -69,6 +71,8 @@ public:
account_t& last_account() {
return acct_temps->back();
}
+
+ void clear();
};
} // namespace ledger