From 9b3711533fc7cd641eda8e9745013b2f8af81f85 Mon Sep 17 00:00:00 2001 From: Mike Alexander Date: Tue, 17 Nov 2015 02:23:00 -0500 Subject: [PATCH] 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. --- src/import-export/import-main-matcher.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/import-export/import-main-matcher.c b/src/import-export/import-main-matcher.c index 3793212a2b..3d605578e4 100644 --- a/src/import-export/import-main-matcher.c +++ b/src/import-export/import-main-matcher.c @@ -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,