hwcontext_vulkan: call ff_vk_uninit() on device uninit

This fixes three memory leaks from ff_vk_load_props().
pull/389/head
Lynne 2 years ago
parent f30b979ca2
commit b4d5baa8b0
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 2
      libavutil/hwcontext_vulkan.c

@ -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,

Loading…
Cancel
Save