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:
Mike Alexander 2015-11-17 02:23:00 -05:00
parent 104de59519
commit 9b3711533f

View File

@ -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,