diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-02 00:27:59 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-02 00:27:59 -0400 |
commit | 8c61ba013f676b60cc016464363edfea0c70c7e3 (patch) | |
tree | a0acfdd13d4da5d4d1178f406450b0ae52c961df /src/convert.cc | |
parent | e0c5f6db30382960fa60739c368e3700e5f71b67 (diff) | |
download | fork-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.cc | 4 |
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)")); } |