diff --git a/libgnucash/engine/test-core/test-engine-stuff.cpp b/libgnucash/engine/test-core/test-engine-stuff.cpp index fff4b2a985..cc43a2f3ef 100644 --- a/libgnucash/engine/test-core/test-engine-stuff.cpp +++ b/libgnucash/engine/test-core/test-engine-stuff.cpp @@ -1502,7 +1502,7 @@ free_random_guids(GList *guids) GList *node; for (node = guids; node; node = node->next) - g_free (node->data); + guid_free (static_cast(node->data)); g_list_free (guids); } @@ -1732,7 +1732,7 @@ get_random_query(void) guid, get_random_id_type (), get_random_queryop ()); - g_free (guid); + guid_free (guid); break; case 8: /* PR_KVP */