mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01: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:
parent
c2a356d583
commit
7e9e2cf93b
1 changed files with 2 additions and 1 deletions
|
|
@ -1157,7 +1157,8 @@ static void vulkan_device_free(AVHWDeviceContext *ctx)
|
|||
vk->DestroyDebugUtilsMessengerEXT(hwctx->inst, p->debug_ctx,
|
||||
hwctx->alloc);
|
||||
|
||||
vk->DestroyInstance(hwctx->inst, hwctx->alloc);
|
||||
if (hwctx->inst)
|
||||
vk->DestroyInstance(hwctx->inst, hwctx->alloc);
|
||||
|
||||
if (p->libvulkan)
|
||||
dlclose(p->libvulkan);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue