Commit 6f0dd6b4 authored by Zhong Li's avatar Zhong Li

lavc/qsv: fix a memory leak in ff_qsv_set_display_handle()

Reported-by: 's avatarLinjie Fu <linjie.fu@intel.com>
Signed-off-by: 's avatarZhong Li <zhong.li@intel.com>
parent 1d54309c
......@@ -838,6 +838,8 @@ int ff_qsv_close_internal_session(QSVSession *qs)
if (qs->va_device_ctx) {
qs->va_device_ctx->free(qs->va_device_ctx);
}
av_buffer_unref(&qs->va_device_ref);
#endif
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment