avcodec/qsv_h2645: fix memory leak for plugin load

Signed-off-by: Xu Guangxin <guangxin.xu@intel.com>
Signed-off-by: Linjie Fu <linjie.justin.fu@gmail.com>
pull/371/head
Xu Guangxin 4 years ago committed by Linjie Fu
parent 7a6666b19d
commit 4c47b41782
  1. 2
      libavcodec/qsvdec_h2645.c

@ -69,6 +69,8 @@ static av_cold int qsv_decode_close(AVCodecContext *avctx)
{
QSVH2645Context *s = avctx->priv_data;
av_freep(&s->qsv.load_plugins);
ff_qsv_decode_close(&s->qsv);
qsv_clear_buffers(s);

Loading…
Cancel
Save