1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

avutil/hwcontext_vulkan: check if created before destroying the instance

Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
This commit is contained in:
Wu Jianhua
2021-11-24 12:11:53 +08:00
committed by Lynne
parent c2a356d583
commit 7e9e2cf93b

View File

@@ -1157,6 +1157,7 @@ static void vulkan_device_free(AVHWDeviceContext *ctx)
vk->DestroyDebugUtilsMessengerEXT(hwctx->inst, p->debug_ctx, vk->DestroyDebugUtilsMessengerEXT(hwctx->inst, p->debug_ctx,
hwctx->alloc); hwctx->alloc);
if (hwctx->inst)
vk->DestroyInstance(hwctx->inst, hwctx->alloc); vk->DestroyInstance(hwctx->inst, hwctx->alloc);
if (p->libvulkan) if (p->libvulkan)