mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove the code in on_matcher_ok_clicked that builds refs_list.
The use and release of refs_list was removed 7358bcc
in August 2012 and
since then on_matcher_ok_clicked has been leaking a GSList on every call.
This commit is contained in:
parent
104de59519
commit
9b3711533f
@ -151,11 +151,8 @@ on_matcher_ok_clicked (GtkButton *button,
|
||||
GNCImportMainMatcher *info)
|
||||
{
|
||||
GtkTreeModel *model;
|
||||
GtkTreePath *path;
|
||||
GtkTreeRowReference *ref;
|
||||
GtkTreeIter iter;
|
||||
GNCImportTransInfo *trans_info;
|
||||
GSList *refs_list = NULL;
|
||||
|
||||
g_assert (info);
|
||||
|
||||
@ -177,11 +174,6 @@ on_matcher_ok_clicked (GtkButton *button,
|
||||
|
||||
if (gnc_import_process_trans_item(NULL, trans_info))
|
||||
{
|
||||
path = gtk_tree_model_get_path(model, &iter);
|
||||
ref = gtk_tree_row_reference_new(model, path);
|
||||
refs_list = g_slist_append(refs_list, ref);
|
||||
gtk_tree_path_free(path);
|
||||
|
||||
if (info->transaction_processed_cb)
|
||||
{
|
||||
info->transaction_processed_cb(trans_info,
|
||||
|
Loading…
Reference in New Issue
Block a user