gnucash maint: [sx-book] free sx_list before g_object_unreffing sxes

Christopher Lam clam at code.gnucash.org
Mon Aug 1 11:50:36 EDT 2022


Updated	 via  https://github.com/Gnucash/gnucash/commit/d1aefc85 (commit)
	from  https://github.com/Gnucash/gnucash/commit/2443d8fa (commit)



commit d1aefc851d0ec34500405edcfca6ef0d475dd411
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Mon Aug 1 23:43:08 2022 +0800

    [sx-book] free sx_list before g_object_unreffing sxes

diff --git a/libgnucash/engine/SX-book.c b/libgnucash/engine/SX-book.c
index d8d8c27db..15eb1943b 100644
--- a/libgnucash/engine/SX-book.c
+++ b/libgnucash/engine/SX-book.c
@@ -281,6 +281,7 @@ book_sxes_end(QofBook* book)
     sxes = qof_collection_get_data(col);
     if (sxes != NULL)
     {
+        g_list_free (sxes->sx_list);
         g_object_unref(sxes);
         qof_collection_set_data(col, NULL);
     }



Summary of changes:
 libgnucash/engine/SX-book.c | 1 +
 1 file changed, 1 insertion(+)



More information about the gnucash-changes mailing list