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:
parent
1d54309c8a
commit
6f0dd6b4ab
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user