mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
When we malloc a Transaction, then TransBeginEdit, then want to abort,
just call xaccTransDestroy(), xaccTransCommitEdit(). No rollback needed. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13369 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a652fc59d0
commit
b4456caf23
@ -2654,7 +2654,6 @@ create_each_transaction_helper( Transaction *t, void *d )
|
||||
|
||||
if (errFlag) {
|
||||
PERR("Some error in new transaction creation...");
|
||||
xaccTransRollbackEdit(newT);
|
||||
xaccTransDestroy(newT);
|
||||
xaccTransCommitEdit(newT);
|
||||
return 13;
|
||||
|
@ -492,7 +492,7 @@ int ofx_proc_transaction_cb(struct OfxTransactionData data, void * transaction_u
|
||||
else
|
||||
{
|
||||
PERR("The transaction doesn't have a valid amount");
|
||||
xaccTransRollbackEdit(transaction);
|
||||
xaccTransDestroy(transaction);
|
||||
xaccTransCommitEdit(transaction);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user