nv2a/vk: Release report queue nodes at finalize

This commit is contained in:
Matt Borgerson 2024-07-26 17:21:01 -07:00 committed by mborgerson
parent 3ccea5fa12
commit 7b6b5f396c
1 changed files with 6 additions and 0 deletions

View File

@ -43,6 +43,12 @@ void pgraph_vk_finalize_reports(PGRAPHState *pg)
{
PGRAPHVkState *r = pg->vk_renderer_state;
QueryReport *q, *next;
QSIMPLEQ_FOREACH_SAFE (q, &r->report_queue, entry, next) {
QSIMPLEQ_REMOVE_HEAD(&r->report_queue, entry);
g_free(q);
}
vkDestroyQueryPool(r->device, r->query_pool, NULL);
}