git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9542 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2003-10-17 05:36:07 +00:00
parent 9f58eb2621
commit eb069af1c6
2 changed files with 9 additions and 11 deletions

View File

@ -244,17 +244,17 @@ void gnc_import_TransInfo_delete (GNCImportTransInfo *info)
/*If the transaction is still open, it must be destroyed*/
if(xaccTransIsOpen(info->trans)==TRUE)
{
xaccTransDestroy(info->trans);
xaccTransCommitEdit(info->trans);
xaccTransDestroy(info->trans);
xaccTransCommitEdit(info->trans);
}
if (info->match_tokens)
{
GList *node;
GList *node;
for (node = info->match_tokens; node; node = node->next)
g_free (node->data);
for (node = info->match_tokens; node; node = node->next)
g_free (node->data);
g_list_free (info->match_tokens);
g_list_free (info->match_tokens);
}
g_free(info);
}

View File

@ -32,14 +32,12 @@
#include <stdlib.h>
#include "import-utilities.h"
#include "kvp_frame.h"
#include "Account.h"
#include "Transaction.h"
#include "gnc-engine-util.h"
static short module = MOD_IMPORT;
/********************************************************************\
* Setter and getter functions for the online_id kvp frame in
* Account and Transaction
@ -57,7 +55,7 @@ void gnc_import_set_acc_online_id(Account * account,
{
kvp_frame * frame;
frame = xaccAccountGetSlots(account);
kvp_frame_set_string(frame, "online_id", string_value);
kvp_frame_set_str(frame, "online_id", string_value);
}
const gchar * gnc_import_get_trans_online_id(Transaction * transaction)
@ -72,7 +70,7 @@ void gnc_import_set_trans_online_id(Transaction * transaction,
{
kvp_frame * frame;
frame = xaccTransGetSlots(transaction);
kvp_frame_set_string (frame, "online_id", string_value);
kvp_frame_set_str (frame, "online_id", string_value);
}
/* @} */