1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Reported-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
This commit is contained in:
Zhong Li 2019-09-29 16:01:06 +08:00
parent 1d54309c8a
commit 6f0dd6b4ab

View File

@ -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;
}