You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +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:
@@ -1157,7 +1157,8 @@ 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);
|
||||||
|
|
||||||
vk->DestroyInstance(hwctx->inst, hwctx->alloc);
|
if (hwctx->inst)
|
||||||
|
vk->DestroyInstance(hwctx->inst, hwctx->alloc);
|
||||||
|
|
||||||
if (p->libvulkan)
|
if (p->libvulkan)
|
||||||
dlclose(p->libvulkan);
|
dlclose(p->libvulkan);
|
||||||
|
Reference in New Issue
Block a user