summaryrefslogtreecommitdiff
path: root/src/convert.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-02 00:27:59 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-02 00:27:59 -0400
commit8c61ba013f676b60cc016464363edfea0c70c7e3 (patch)
treea0acfdd13d4da5d4d1178f406450b0ae52c961df /src/convert.cc
parente0c5f6db30382960fa60739c368e3700e5f71b67 (diff)
downloadfork-ledger-8c61ba013f676b60cc016464363edfea0c70c7e3.tar.gz
fork-ledger-8c61ba013f676b60cc016464363edfea0c70c7e3.tar.bz2
fork-ledger-8c61ba013f676b60cc016464363edfea0c70c7e3.zip
Changed two uses of delete to checked_delete()
Diffstat (limited to 'src/convert.cc')
-rw-r--r--src/convert.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/convert.cc b/src/convert.cc
index 2e6da2f6..aa9bbb6f 100644
--- a/src/convert.cc
+++ b/src/convert.cc
@@ -117,7 +117,7 @@ value_t convert_command(call_scope_t& scope)
if (matched) {
DEBUG("convert.csv", "Ignored xact with code: " << *xact->code);
- delete xact; // ignore it
+ checked_delete(xact); // ignore it
}
else {
if (xact->posts.front()->account == NULL) {
@@ -135,7 +135,7 @@ value_t convert_command(call_scope_t& scope)
}
if (! journal.add_xact(xact)) {
- delete xact;
+ checked_delete(xact);
throw_(std::runtime_error,
_("Failed to finalize derived transaction (check commodities)"));
}