hwcontext_vulkan: call ff_vk_uninit() on device uninit

This fixes three memory leaks from ff_vk_load_props().
This commit is contained in:
Lynne 2023-06-13 04:35:29 +02:00
parent f30b979ca2
commit b4d5baa8b0
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
1 changed files with 2 additions and 0 deletions

View File

@ -1176,6 +1176,8 @@ static void vulkan_device_free(AVHWDeviceContext *ctx)
RELEASE_PROPS(hwctx->enabled_inst_extensions, hwctx->nb_enabled_inst_extensions);
RELEASE_PROPS(hwctx->enabled_dev_extensions, hwctx->nb_enabled_dev_extensions);
ff_vk_uninit(&p->vkctx);
}
static int vulkan_device_create_internal(AVHWDeviceContext *ctx,