From d1aefc851d0ec34500405edcfca6ef0d475dd411 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Mon, 1 Aug 2022 23:43:08 +0800 Subject: [PATCH] [sx-book] free sx_list before g_object_unreffing sxes --- libgnucash/engine/SX-book.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libgnucash/engine/SX-book.c b/libgnucash/engine/SX-book.c index d8d8c27db6..15eb1943bc 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); }