[FFmpeg-cvslog] hwcontext_vulkan: call ff_vk_uninit() on device uninit
Lynne
git at videolan.org
Thu Jun 15 23:04:09 EEST 2023
ffmpeg | branch: master | Lynne <dev at lynne.ee> | Tue Jun 13 04:35:29 2023 +0200| [b4d5baa8b05974a406615925f379b56fa1c850a6] | committer: Lynne
hwcontext_vulkan: call ff_vk_uninit() on device uninit
This fixes three memory leaks from ff_vk_load_props().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b4d5baa8b05974a406615925f379b56fa1c850a6
---
libavutil/hwcontext_vulkan.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index 1132a61390..c86229ba65 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/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,
More information about the ffmpeg-cvslog
mailing list