panvk: fix driconf memory leak

The driconf options were leaked when the panvk instance was destroyed.

Fixes: aa8fec638f ("panvk: add basic driconf infrastructure")
Signed-off-by: Olivia Lee <olivia.lee@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34986>
This commit is contained in:
Olivia Lee 2025-05-14 13:41:36 -07:00 committed by Marge Bot
parent 3fd2bdd285
commit c053bc2213

View file

@ -261,6 +261,9 @@ panvk_DestroyInstance(VkInstance _instance,
if (!instance)
return;
driDestroyOptionCache(&instance->dri_options);
driDestroyOptionInfo(&instance->available_dri_options);
vk_instance_finish(&instance->vk);
vk_free(&instance->vk.alloc, instance);
}