gnucash stable: [account-quickfill.c] free link and node with g_list_delete_link

Christopher Lam clam at code.gnucash.org
Fri Nov 21 19:34:24 EST 2025


Updated	 via  https://github.com/Gnucash/gnucash/commit/434546f7 (commit)
	from  https://github.com/Gnucash/gnucash/commit/4dd347a6 (commit)



commit 434546f73143bb4f694e1a10bcd2444b0c6c78df
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Nov 19 03:16:07 2025 +0800

    [account-quickfill.c] free link and node with g_list_delete_link
    
    instead of g_list_remove_link which doesn't free the node.

diff --git a/gnucash/gnome-utils/account-quickfill.c b/gnucash/gnome-utils/account-quickfill.c
index 24d9825254..0b2fb0d428 100644
--- a/gnucash/gnome-utils/account-quickfill.c
+++ b/gnucash/gnome-utils/account-quickfill.c
@@ -106,7 +106,7 @@ shared_quickfill_find_accounts (GtkTreeModel* model,
         {
             ref = gtk_tree_row_reference_new (model, path);
             data->refs = g_list_append (data->refs, ref);
-            data->accounts = g_list_remove_link (data->accounts, tmp);
+            data->accounts = g_list_delete_link (data->accounts, tmp);
             return (data->accounts == NULL);
         }
     }



Summary of changes:
 gnucash/gnome-utils/account-quickfill.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list