gnucash maint: Revert "[qofquery] q->terms g_list members must be freed"

Christopher Lam clam at code.gnucash.org
Mon Jun 7 19:37:42 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/b095d1e7 (commit)
	from  https://github.com/Gnucash/gnucash/commit/714a0875 (commit)



commit b095d1e7dad8c1111defb3d1d438164d8e7e2bec
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Tue Jun 8 07:35:51 2021 +0800

    Revert "[qofquery] q->terms g_list members must be freed"
    
    This reverts commit a3e3823ee7b38c76239ced3f673b3a7f5c404bde.
    
    Already freed earlier in the same function.

diff --git a/libgnucash/engine/qofquery.cpp b/libgnucash/engine/qofquery.cpp
index a90004d62..3412f9160 100644
--- a/libgnucash/engine/qofquery.cpp
+++ b/libgnucash/engine/qofquery.cpp
@@ -266,7 +266,7 @@ static void free_members (QofQuery *q)
     free_sort (&(q->secondary_sort));
     free_sort (&(q->tertiary_sort));
 
-    g_list_free_full (q->terms, g_free);
+    g_list_free(q->terms);
     q->terms = NULL;
 
     g_list_free(q->books);



Summary of changes:
 libgnucash/engine/qofquery.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list