[sx-book] free sx_list before g_object_unreffing sxes

This commit is contained in:
Christopher Lam 2022-08-01 23:43:08 +08:00
parent 2443d8faf7
commit d1aefc851d

View File

@ -281,6 +281,7 @@ book_sxes_end(QofBook* book)
sxes = qof_collection_get_data(col); sxes = qof_collection_get_data(col);
if (sxes != NULL) if (sxes != NULL)
{ {
g_list_free (sxes->sx_list);
g_object_unref(sxes); g_object_unref(sxes);
qof_collection_set_data(col, NULL); qof_collection_set_data(col, NULL);
} }