ffmpeg | branch: master | Zhong Li <[email protected]> | Sun Sep 29 16:01:06 2019 +0800| [6f0dd6b4ab6536ef0506c121263de15a0be64d5d] | committer: Zhong Li
lavc/qsv: fix a memory leak in ff_qsv_set_display_handle() Reported-by: Linjie Fu <[email protected]> Signed-off-by: Zhong Li <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f0dd6b4ab6536ef0506c121263de15a0be64d5d --- libavcodec/qsv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 994c9ebcb0..a43f0d5c5a 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -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; } _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
